print('hello', 'world')   #默认用空格隔开
#hello world

print('hello', 'world', sep='wuli') #sep=''可以用来设置连接的字符串
#hellowuliworld

print('hello')
print('world')  #print有默认换行功能
#hello
#world

print('hello', end='')  #end=''可以设置print结束后的字符
print('world')
#hello哈world

 

相关文章:

  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案