锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产中文在线亚洲精品官网,亚洲国产综合人成综合网站00,亚洲AV日韩综合一区http://m.tkk7.com/lihao336/category/46782.html鎴愪簬鍧氬繊錛屾瘉浜庢誕韜?/description>zh-cnThu, 19 May 2011 17:09:21 GMTThu, 19 May 2011 17:09:21 GMT60The Zen of Pythonhttp://m.tkk7.com/lihao336/archive/2011/05/18/350541.htmlcalvincalvinWed, 18 May 2011 14:58:00 GMThttp://m.tkk7.com/lihao336/archive/2011/05/18/350541.htmlhttp://m.tkk7.com/lihao336/comments/350541.htmlhttp://m.tkk7.com/lihao336/archive/2011/05/18/350541.html#Feedback0http://m.tkk7.com/lihao336/comments/commentRss/350541.htmlhttp://m.tkk7.com/lihao336/services/trackbacks/350541.htmlThe Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

calvin 2011-05-18 22:58 鍙戣〃璇勮
]]>
妯″潡http://m.tkk7.com/lihao336/archive/2010/10/29/336448.htmlcalvincalvinFri, 29 Oct 2010 02:21:00 GMThttp://m.tkk7.com/lihao336/archive/2010/10/29/336448.htmlhttp://m.tkk7.com/lihao336/comments/336448.htmlhttp://m.tkk7.com/lihao336/archive/2010/10/29/336448.html#Feedback0http://m.tkk7.com/lihao336/comments/commentRss/336448.htmlhttp://m.tkk7.com/lihao336/services/trackbacks/336448.html
1 #!/usr/bin/python
2 # Filename: using_name.py
3 
4 if __name__ == '__main__':
5     print 'This program is being run by itself'
6 else:
7     print 'I am being imported from another module'

$ python using_name.py
This program 
is being run by itself

$ python
>>> import using_name
I am being imported 
from another module
>>>

濡傛灉__name__鏄?__main__'錛岃繖璇存槑榪欎釜妯″潡琚敤鎴峰崟鐙繍琛岋紝榪欐牱錛屽彲浠ユ牴鎹綋鍓嶈繖涓ā鍧楁槸鍚︽鍦ㄨ鍒殑妯″潡寮曠敤錛屽喅瀹氭槸鍚︽墽琛屼唬鐮佸潡銆?br />
2.浣跨敤dir()鍑芥暟鏉ュ垪鍑烘ā鍧楃殑鏍囩ず絎?br /> 鍙互浣跨敤鍐呭緩鐨刣ir鍑芥暟鏉ュ垪鍑烘ā鍧楀畾涔夌殑鏍囪瘑絎︺傛爣璇嗙鏈夊嚱鏁般佺被鍜屽彉閲忋?br /> 褰撲綘涓篸ir()鎻愪緵涓涓ā鍧楀悕鐨勬椂鍊欙紝瀹冭繑鍥炴ā鍧楀畾涔夌殑鍚嶇О鍒楄〃銆傚鏋滀笉鎻愪緵鍙傛暟錛屽畠榪斿洖褰撳墠妯″潡涓畾涔夌殑鍚嶇О鍒楄〃銆?br /> 鍚屾椂錛屽彲浠ヤ嬌鐢╠el鍑芥暟鏉ュ垹闄ゅ綋鍓嶆ā鍧椾腑鐨勫彉閲?灞炴с?br />



calvin 2010-10-29 10:21 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 亚洲av日韩av天堂影片精品| 亚洲国产精品成人AV在线| 亚洲AV无码不卡在线观看下载 | 久久亚洲高清综合| 最近中文字幕免费mv视频7| 久久久久成人片免费观看蜜芽| 男女作爱免费网站| 亚洲无人区码一二三码区别图片| 亚洲天堂男人天堂| 亚洲成AV人片在线播放无码| 亚洲欧洲一区二区三区| 国产一级淫片免费播放| 在线免费一区二区| 成人爽A毛片免费看| 国产成人精品免费午夜app| 久久国产乱子伦精品免费不卡| a免费毛片在线播放| 十八禁的黄污污免费网站| 苍井空亚洲精品AA片在线播放| 亚洲 日韩经典 中文字幕| 亚洲制服在线观看| 亚洲黄色高清视频| 亚洲色图.com| 亚洲综合区图片小说区| 亚洲欧洲日韩国产综合在线二区| 国产亚洲综合网曝门系列| 在线观看午夜亚洲一区| 亚洲无av在线中文字幕| 亚洲色偷偷综合亚洲AVYP| 亚洲香蕉成人AV网站在线观看| 久久精品国产亚洲沈樵| 亚洲av无码乱码国产精品fc2| 亚洲精品蜜桃久久久久久| 亚洲欧洲成人精品香蕉网| 亚洲国产精品va在线播放| 亚洲国产精品高清久久久| 亚洲电影免费在线观看| 91亚洲国产成人精品下载| 亚洲视频手机在线| 亚洲中文字幕日本无线码| 亚洲欧美黑人猛交群|