[英]TypeError: 'str' object is not callable - Python
我不斷收到此錯誤。 TypeError:“ str”對象不可調用
我搜索了所有代碼,甚至在任何地方都不使用單詞str。
if again():
print ('%s LAST: %s') % (k, tx)
m = 1
k = 0.001
amount = k / 0.00000001
amount = int(amount)
print ('Doing %s k') % k
do(amount, int(m)) # The error occurs here
else:
#code
您分配了要do
某處do
的字符串。
您需要搜索代碼以查看在哪里執行操作,或者將do()
函數重命名為其他名稱以解決沖突。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.