1
skyun 2016-07-24 16:56:32 +08:00 via Android
print(n,"/n",f,"/n",s)
转义要用引号包起来。 |
2
skyun 2016-07-24 17:04:37 +08:00 via Android
额额。转义符号方向错了。。
|
3
skyun 2016-07-24 17:05:58 +08:00 via Android
应该是 print(n,"\n",f,"\n",s)
|
4
lll9p 2016-07-24 17:25:15 +08:00
确实是很初级的问题。。
print('{}\n{}\n{}'.format(n,f,s)) print('\n'.join(map(str,[n,f,s]))) |
5
quxw 2016-07-25 10:09:11 +08:00
"\n" 代表换行
|