练习9:更多打印 = =、
2016-03-31 14:20
197 查看
只是单纯的打印练习= =、直接上代码了,注意事项都注释在代码里
运行结果
# Here's some new strange stuff, remember type it exactly. days = "Mon Tue Wed Thu Fri Sat Sun" months = "Jan\nFeb\nMar\nMay\nJu1\nAug" print "Here are the days: ", days print "Here are the months: ", months print """ There's something goning 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. """ # 使用3对双引号以输出多行字符串 print "%r" % months # %r用于打印出代码的原本样子
运行结果
相关文章推荐
- OpenERP登录页面调整
- 如何获得微信公众号关注页面地址?
- 微信进入消息页面,光标处自动弹出软键盘设置
- [poj 3292] Semi-prime H-numbers 筛数
- 第四周项目4:程序分析(2)
- 解决for循环总是输出最后一个数组的值的办法并且实现不同位置的li加载不同的img地址图片
- mySql-通过group by分组
- python 备份文件脚本
- 语言基础——Java_十进制数转换成十六进制数的实现
- 二、svn分支策略原理:
- jquery的位移,页边距整理
- Linux 命令整理
- PopupWindows(提示框)代码详解
- WriteConcern
- 画田字div,且田左下角拆分上下
- IOS自动捕获程序崩溃日志再发送邮件提示开发者
- BUG等级和严重等级关系
- c#大圣之路笔记——c#编程之Password加密
- Linux查看进程具体开启时间
- DB2中如何查看执行计划