我試圖在 Google Colab 上總結這個方程
a=1
b=input("B:")
c=a b
print(c)
我在谷歌上搜索,提供的解決方案是c=a int(b)但發生了錯誤TypeError: 'str' object is not callable
請幫助我解決如何在 Google Colab 中對 c 求和。非常感謝
uj5u.com熱心網友回復:
我發現c=a int(b)答案沒有問題。考慮重新啟動運行時。

轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/470718.html
下一篇:用字串替換串列值
