繁体   English   中英

我正在尝试使用 cf push 命令推送我的应用程序,但我一直在下面收到此错误

[英]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

冒号前有一个逗号。 工作代码(假设变量设置正确)应该是:

print temp1[int(i0*len(temp1)):int(i1*len(temp1))]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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