简体   繁体   中英

I am trying to push my app using cf push command but I keep on getting this error below

 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM