关于Python换行
如下程序 age=20 if age>=18: print'your age is',age print'adult' 会输出your age is 20 adult 但我现在可以用一个print命令来实现吗?怎么实现? 我尝试过'''your age is age adult''' 但最后输出的是your age is age adult
如下程序 age=20 if age>=18: print'your age is',age print'adult' 会输出your age is 20 adult 但我现在可以用一个print命令来实现吗?怎么实现? 我尝试过'''your age is age adult''' 但最后输出的是your age is age adult
2017-02-20
举报