发布时间:2019-09-20 07:31:08编辑:auto阅读(2914)
练习中有一个很无聊的问题:如何把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代码写成一行,但要注意语法。
上一篇: flex3整合java
下一篇: python unittest框架
54713
41486
36078
31557
26456
26159
24687
20272
16234
15651
2691°
2437°
2543°
2675°
2629°
2856°
2773°
2619°
2645°
2619°