練習中有一個很無聊的問題:如何把Python代碼寫成一行?
print "How can i write python in a line? \n"; print "You can use ';' follow the sentence. " ; print "Then run the script!"; print; print "Done."
使用 ; 分割每段代碼,就能把Python代碼寫成一行,但要注意語法。
練習中有一個很無聊的問題:如何把Python代碼寫成一行?
print "How can i write python in a line? \n"; print "You can use ';' follow the sentence. " ; print "Then run the script!"; print; print "Done."
使用 ; 分割每段代碼,就能把Python代碼寫成一行,但要注意語法。