频道栏目
首页 > 程序开发 > Web开发 > Python > 正文
learn python the hard way_exercise 9
2011-09-27 11:06:36      个评论      
收藏   我要投稿

Python代码 
#!/usr/bin/env python 
 
#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-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
""" 
Python代码 
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. 

作者“noodles”
 

点击复制链接 与好友分享!回本站首页
相关TAG标签
上一篇:dd python笔记
下一篇:Python Ctypes结构体指针处理(函数参数,函数返回)
相关文章
图文推荐
点击排行

关于我们 | 联系我们 | 广告服务 | 投资合作 | 版权申明 | 在线帮助 | 网站地图 | 作品发布 | Vip技术培训 | 举报中心

版权所有: 红黑联盟--致力于做实用的IT技术学习网站