Home > other >  List read small problem!!!!!
List read small problem!!!!!

Time:09-22


Data read a list is a list of reading in detals list, in the list is not formed a long line, and then use a comma between each string?
Read back with len datals length is not the number of all string?
Behind the detals [] [] why are there two parameters?

CodePudding user response:

Read the data file is, indeed, one line?

CodePudding user response:

Even if the string, which can also be expressed in the second string character ah, datals [0] string, datals [0] [3] is the fourth character string

CodePudding user response:

refer to the second floor weixin_45903952 response:
even if the string, can also be expressed in the second string which characters, datals [0] string, datals [0] [3] the fourth character is the string

For example: the file is:
2,50,60,80
55,60,8,40
After the data read is not,50,60,80,55,60,8,40 [2]

CodePudding user response:

refer to the second floor weixin_45903952 response:
even if the string, can also be expressed in the second string which characters, datals [0] string, datals [0] [3] the fourth character is the string

CodePudding user response:

reference 4 floor overcomemyself response:
Quote: refer to the second floor weixin_45903952 response:

Even if the string, which can also be expressed in the second string character ah, datals [0] string, datals [0] [3] the fourth character is the string

For example: the file is:
2,50,60,80
55,60,8,40
After the data read is not,50,60,80,55,60,8,40 [2]



You can print datals knew what counted
  • Related