Home > Back-end >  New to Java originally some Python to ask a question?
New to Java originally some Python to ask a question?

Time:10-11

Python algorithm result (1, 2, 3, 4, 5) such a list

My Java calls python return value as if can only use XXX. The toString () takes

Problem (1, 2, 3, 4, 5) results became "(1, 2, 3, 4, 5)" a string of characters, what method? I want an array list,

CodePudding user response:

Write a transform class will commonly used

Remove the parentheses, press, split, generate a string array, and then need to be converted to an integer array
  • Related