MDGSF Software Engineer

[python] Keyword and print()

2017-08-30

print('Hello')
print('World')

print('Hello', end='')
print('World')

print('Hello', end=' ')
print('World')

print('cats', 'dogs', 'mice')

print('cats', 'dogs', 'mice', sep=',')
Hello
World
HelloWorld
Hello World
cats dogs mice
cats,dogs,mice

weixingongzhonghao

Comments

Content