print('hello world!')
print('hello', 'world!') # 逗号自动添加默认的分隔符:空格
print('hello' + 'world!') # 加号表示字符拼接
print('hello', 'world', sep='***') # 单词间用***分隔
print('#' * 50) # *号表示重复50遍
print('how are you?', end='') # 默认print会打印回车,end=''表示不要回车
python02-print输出
猜你喜欢
转载自blog.csdn.net/weixin_45942735/article/details/103828613
今日推荐
周排行