习题 9: 打印,打印,打印

简介: # Here's some new strange stuff, remember type it exactly.days = "Mon Tue Wed Thu Fri Sat Sun"months = "Jan\n Feb\n Mar\n Apr\n May\n Jun\n Jul\n ...
# Here's some new strange stuff, remember type it exactly.

days = "Mon Tue Wed Thu Fri Sat Sun"

months = "Jan\n Feb\n Mar\n Apr\n May\n Jun\n Jul\n Aug"

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.
""")

Here are the days: Mon Tue Wed Thu Fri Sat Sun
Here are the months: Jan
Feb
Mar
Apr
May
Jun
Jul
Aug

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.

知识在于点滴积累
目录
相关文章
|
1月前
|
人工智能
打印出杨辉三角形
打印出杨辉三角形。
58 17
|
5月前
|
C语言
C语言---函数---请输入乘法口诀表的行,来打印几几乘法表
C语言---函数---请输入乘法口诀表的行,来打印几几乘法表
|
4月前
|
容器
打印
打印
54 0
|
6月前
|
弹性计算 运维 Shell
打印9*9 乘法表
【4月更文挑战第29天】
51 1
打印
4.6 打印 4.6.1 分页符的插入及删除 1、插入水平分页符 选定要插入分页符位置的下一行,在“页面布局”选项卡的“页面设置”组单击“分隔符”,在出现的下拉列表中选择”插入分页符”命令 2、插入垂直分页符 选定要插入分页符位置的右侧列,在“页面布局”选项卡的“页面设置”组单击“分隔符”,在出现的下拉列表中选择”插入分页符”命令。 3、同时插入水平、垂直分页符 选定某单元格,在“页面布局”选项卡的“页面设置”组单击“分隔符”,在出现的下拉列表中选择“插入分页符”命令此时会在该单元格左边框和上边框位置同时插入水平、垂直分页符。 4、删除手动分页符 先选择紧邻水平分页符的下面行 (或该行
|
开发者 Python
打印九九乘法表 | 学习笔记
快速学习打印九九乘法表
打印九九乘法表 | 学习笔记
|
机器学习/深度学习 C语言 开发者
打印|学习笔记
快速学习打印
打印|学习笔记
习题 8: 打印,打印
formatter = "%r %r %r %r" print (formatter % (1, 2, 3, 4)) print (formatter % ("one", "two", "three", "four")) print (formatter % (True, False, False...
715 0