python多行打印两种方式_demo01

第一种方式:
print("\t A is a good man\n", "\t B is a nice man\n", "\t C is a handsome man")

第二种方式:
print('''
A is a good man
B is a nice man
C is a handsome man

**** 欢迎进入以下菜单栏 ****
******* 1、购物 **********
******* 2、结算 **********
******* 3、退款 **********
******* 4、退出 **********
''')

猜你喜欢

转载自blog.csdn.net/zhiboqingyun/article/details/112876620