python02-print输出

print('hello world!')
print('hello', 'world!')  # 逗号自动添加默认的分隔符:空格
print('hello' + 'world!')  # 加号表示字符拼接
print('hello', 'world', sep='***')  # 单词间用***分隔
print('#' * 50)  # *号表示重复50遍
print('how are you?', end='') # 默认print会打印回车,end=''表示不要回车
发布了46 篇原创文章 · 获赞 0 · 访问量 442

猜你喜欢

转载自blog.csdn.net/weixin_45942735/article/details/103828613