阅读背景:

如何从Python中的字符串中选择某些字符

来源:互联网 
date = line[4:5]

I want the 3rd and 4th values in the line to be stored as date. When I use the code above, I end up with date = 1, when I want it to be equal to an integer between 00 and 99. How can I do this rightI want the 3rd and 4th valu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: