笨办法学python 习题9:打印,打印,打印
程序员文章站
2022-06-15 18:43:44
...
继续继续熟悉打印
\n |
打印换行1 |
""" xxx """ |
打印换行2 |
#Here's some new strange stuff, remember type it exactly.
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJul\nAug"
print ("Here are the days: ", days)
print ("Here are the months: ",months)
print ("""
there's something going on here.
With the three double-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
""")
打印结果
推荐阅读
-
python 练习题:请利用循环依次对list中的每个名字打印出Hello, xxx!
-
Python-打印指定范围内的全部回文素数(高教社,《Python编程基础及应用》习题8-7) (10分) 回文素数是指一个数既是素数又是回文数,例如131既是素数又是回文数。
-
Python经典编程习题100例:第27例:递归打印字符
-
python练习题(三十二):指定行数居中打印出杨辉三角形
-
Python打印杨辉三角形 RUNOOB python练习题61
-
《笨办法学 python3》系列练习计划——12.提示别人 input() 打印提示
-
Python学习笔记(笨方法学Python3)-习题7:更多打印
-
笨方法学Python 习题 7: 更多打印
-
笨方法学python笔记:习题7 更多打印
-
笨方法学习Python-习题7:更多打印