print()变元end,sep

print('hello',end='')
print('world')

helloworld
>>> print('cat','dog','cow')
cat dog cow
>>> print('cat','dog','cow',sep=',')
cat,dog,cow

 

posted @ 2023-02-14 21:11  Lucass-  阅读(15)  评论(0)    收藏  举报