为什么print中的\n失去作用?
n = 123
f = 456.789
s1 = 'Hello, world'
s2 = 'Hello, \'Adam\''
s3 = r'Hello, "Bart"'
s4 = r'''Hello,
Lisa!'''
print n,'\n',f,'\n',s1,'\n',s2,'\n',s3,'\n',s4
该如何转行
n = 123
f = 456.789
s1 = 'Hello, world'
s2 = 'Hello, \'Adam\''
s3 = r'Hello, "Bart"'
s4 = r'''Hello,
Lisa!'''
print n,'\n',f,'\n',s1,'\n',s2,'\n',s3,'\n',s4
该如何转行
2017-07-25
举报