1
A
回答
1
\
是一個line continuation字符。這意味着「這個聲明繼續下一行」。
如果你的代碼看起來像,
raise Typeerror, \
"expected string, got tuple"
這行爲相同
raise Typeerror, "expected string, got tuple"
相關問題
- 1. 怪(?)模塊導入語法
- 2. 使用dis模塊的輸出?
- 3. 的Ruby語法怪異
- 4. Python安裝模塊:無效的語法
- 5. 奇怪的Python語法?
- 6. cx_freeze AttributeError:模塊'dis'沒有屬性'_unpack_opargs'
- 7. xcode的怪異方法語法定義
- 8. Python怪異ImportError:沒有名爲錯誤的模塊
- 9. 相當於Python dis()的Lua?
- 10. 怪異array.length替代語法
- 11. C++怪異循環語法
- 12. 奇怪的下載模塊python 3.5
- 13. Python模塊中的奇怪字符
- 14. ES6模塊語法和Typescript模塊語法之間的混淆
- 15. Python模塊語義與其C-API中的Ruby模塊語義
- 16. 集合初始化的怪異語法
- 17. Ç怪異的數組語法
- 18. 無效的語法差異,奇怪
- 19. Python - SyntaxError:無效語法sys模塊
- 20. Python 2.4 - 安裝模塊語法錯誤
- 21. CLICK模塊的cpp語法
- 22. Python異常語法差異?
- 23. 的Java模怪異
- 24. Python的怪異減法結果
- 25. 在導出模塊的React中的語法差異
- 26. 與python的異常python語法錯誤
- 27. Python模塊的用法
- 28. Python變量奇怪的語法錯誤
- 29. Python - 奇怪的無效語法錯誤
- 30. 奇怪的Python語法錯誤