非常簡單的問題,我希望 :: 作為備注
print("Hello") #This prints Hello
print("hello") ::This prints hello
#This is a remark/comment
::This should also be a remark
是否有任何功能可以讓我分配 :: 作為 #
uj5u.com熱心網友回復:
您不能在 python(或任何其他語言)中重新定義語言結構。
如果您下載了 python 源代碼并重新編譯了一個沒有注釋支持或其他東西的版本,您可能能夠做到——但這可能超出了您想要實作的范圍(并且需要該版本的 python 才能運行,所以它會'不是便攜式的)。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/517795.html
標籤:Python注释
上一篇:需要幫助通過用戶輸入獲取特定字符
