习题 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.

知识在于点滴积累
目录
相关文章
|
5月前
|
容器
打印
打印
59 0
|
7月前
|
安全 编译器 C语言
C++零基础教程(C++中的打印)
C++零基础教程(C++中的打印)
167 0
打印
4.6 打印 4.6.1 分页符的插入及删除 1、插入水平分页符 选定要插入分页符位置的下一行,在“页面布局”选项卡的“页面设置”组单击“分隔符”,在出现的下拉列表中选择”插入分页符”命令 2、插入垂直分页符 选定要插入分页符位置的右侧列,在“页面布局”选项卡的“页面设置”组单击“分隔符”,在出现的下拉列表中选择”插入分页符”命令。 3、同时插入水平、垂直分页符 选定某单元格,在“页面布局”选项卡的“页面设置”组单击“分隔符”,在出现的下拉列表中选择“插入分页符”命令此时会在该单元格左边框和上边框位置同时插入水平、垂直分页符。 4、删除手动分页符 先选择紧邻水平分页符的下面行 (或该行
|
C++
C++数组在年历打印中的运用
C++数组在年历打印中的运用
107 0
|
机器学习/深度学习 C语言 开发者
打印|学习笔记
快速学习打印
打印|学习笔记
AcWing 815. 打印字符串
AcWing 815. 打印字符串
124 0
AcWing 815. 打印字符串
习题 8: 打印,打印
formatter = "%r %r %r %r" print (formatter % (1, 2, 3, 4)) print (formatter % ("one", "two", "three", "four")) print (formatter % (True, False, False...
719 0