print temp1[int(i0*len(temp1)),:int(i1*len(temp1))]
这是错误
2017-02-06T11:41:57.72+0200 [APP/0] ERR TypeError: list indices must be integers, not tuple
There is a comma before the colon. The working code (assuming variables are correctly set) should be:
print temp1[int(i0*len(temp1)):int(i1*len(temp1))]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.