python 打印几行空行、 打印不换行

时间:2022-05-12 17:36:48

2.x版本中使用print '\n' * n #n为行数

3.x版本中使用print('\n' * n) #n为行数

print 'Hello',  :不会换行。【加上逗号(,)】