Learn Python The Hard Way-ex9
2018-01-10 22:10
375 查看
这是我读《Learn Python The Hard Way》所做的练习,如果有错误请指正。
Learning by doing
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 ate 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. """
[align=center]Escape Sequence [/align] | [align=center]Description [/align] | |
[align=center]\\ [/align] | [align=center]Print Backslash [/align] | [align=center] [/align] |
[align=center]\' [/align] | [align=center]Print single-quote [/align] |
[align=center]\" [/align] | [align=center]Print double-quote [/align] | [align=center] [/align] |
[align=center]\f [/align] | [align=center]ASCII formfeed (FF) [/align] | [align=center] [/align] |
[align=center]\n [/align] | [align=center]ACSII linefeed (LF) [/align] |
Learning by doing
相关文章推荐
- 【Python】Learn Python the hard way, ex9 换行符,打印多行字符
- 【Python】Learn Python the hard way, ex41 面向对象术语练习
- 翻译学python---《Learn Python the hard Way》---第一章 绪论
- Learn Python The Hard Way学习(25) - 甚至更多的练习
- Learn Python The Hard Way学习(35) - 分支和函数
- learn python the hard way---ex50,ex51
- 【python练习】--《learn python the hard way》ex39
- 笨办法学 Python (Learn Python The Hard Way)
- 【Python】Learn Python the hard way, ex3 运算符,浮点数
- learn python the hard way(笨办法学python) 练习40 类的用法
- 详细解析字典,learn python the hard way, 笨方法学python
- 《Learn Python the Hard Way》读书笔记
- Learn Python The Hard Way-Ecercise26~30
- Learn Python The Hard Way学习(0) - 安装
- 【Python】Learn Python the hard way, ex40 模块,类和对象,这个解释比较容易理解
- 【Python】Learn Python the hard way, ex46 项目骨架搭建练习
- Learn Python The Hard Way学习(6) - 字符串和文本
- Learn Python The Hard Way学习(26) - 恭喜,可以进行期中考试了!
- Advice From An Old Programmer(Learn Python The Hard Way, 2nd Edition)
- Learn Python The Hard Way学习(36) - 设计和调试