![](/img/trans.png)
[英]I am trying to insert new user to my sqlAlchemy by using Python and Flask but keep getting an error
[英]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.