-1
A
回答
0
像@Moses說,你必須使用input()功能:
>>> d = input('Enter the num here: ')
Enter the num here: 222
>>> d
'222'
>>> int(d)
222
+0
如果此解決方案是正確的,你能接受請回答? –
相關問題
- 1. Python 3.5.2 images2gif類型錯誤
- 2. 變量沒有定義PYTHON 3.5.2
- 3. 權限錯誤13的Python 3.5.2
- 4. 在Python 3.5.2中安裝模塊錯誤
- 5. 在Python 3.5.2中輸入錯誤
- 6. GraphLab創建安裝錯誤 - Python 3.5.2
- 7. VTK 7.1.0 + Python 3.5.2出錯
- 8. 變量語法錯誤(Python)
- 9. 的Eclipse 3.5.2經典錯誤
- 10. ASP.NET 3.5.2中的ChartImg.axd錯誤
- 11. Python 3.5.2 .format()
- 12. 的Python 3.5.2 NameError
- 13. 蟒蛇3.5.2:`PIP安裝mysqlclient`錯誤
- 14. Python 3.5.2調用函數時出錯?
- 15. 如何在Python 3.5.2
- 16. 從python腳本(3.5.2)
- 17. Tensorflow SyntaxError with python 3.5.2
- 18. 的Python 3.5.2:從textblob進口TextBlob:我已經安裝了Python 3.5.2窗口類型錯誤
- 19. 錯誤:使用pip(Python 3.5.2)在Windows 10 64bit中安裝SciPy
- 20. 無效的語法錯誤 - Python 3.5.2 Django 1.10
- 21. 安裝Tensorflow CPU時發生錯誤Windows 8.1 Python 3.5.2
- 22. 可選[類型[美孚]在Python會引發類型錯誤3.5.2
- 23. 的Python 3.2.2錯誤局部變量
- 24. python語法錯誤聲明變量
- 25. 而分配變量Python語法錯誤
- 26. Python的全局變量isspace爲()錯誤
- 27. Python 2.7.5變量名稱語法錯誤
- 28. Python變量奇怪的語法錯誤
- 29. Python初學者類變量錯誤
- 30. Python語法錯誤與變量
您應該使用'input'不'print' –