程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

2023-06(2)

笨办法学Python 3 习题9

发布于2020-02-24 23:38     阅读(1983)     评论(0)     点赞(10)     收藏(0)


[交作业啦]
ex9.py

# Here's some new strange stuff, remember type it exactly.

days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\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-quotoes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
""")
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

会话

PS E:\lpthw> python .\ex9.py
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-quotoes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.

PS E:\lpthw>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
发布了15 篇原创文章 · 获赞 0 · 访问量 279


所属网站分类: 技术文章 > 博客

作者:你太美丽

链接:https://www.pythonheidong.com/blog/article/232808/2c9f626257b5d9845396/

来源:python黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

10 0
收藏该文
已收藏

评论内容:(最多支持255个字符)