锘??xml version="1.0" encoding="utf-8" standalone="yes"?>日韩一区二区三区精品视频 ,亚洲xxx大片,天堂中文在线视频http://www.aygfsteel.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://www.aygfsteel.com/lihao336/archive/2011/05/18/350541.htmlcalvincalvinWed, 18 May 2011 14:58:00 GMThttp://www.aygfsteel.com/lihao336/archive/2011/05/18/350541.htmlhttp://www.aygfsteel.com/lihao336/comments/350541.htmlhttp://www.aygfsteel.com/lihao336/archive/2011/05/18/350541.html#Feedback0http://www.aygfsteel.com/lihao336/comments/commentRss/350541.htmlhttp://www.aygfsteel.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://www.aygfsteel.com/lihao336/archive/2010/10/29/336448.htmlcalvincalvinFri, 29 Oct 2010 02:21:00 GMThttp://www.aygfsteel.com/lihao336/archive/2010/10/29/336448.htmlhttp://www.aygfsteel.com/lihao336/comments/336448.htmlhttp://www.aygfsteel.com/lihao336/archive/2010/10/29/336448.html#Feedback0http://www.aygfsteel.com/lihao336/comments/commentRss/336448.htmlhttp://www.aygfsteel.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 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 外汇| 郴州市| 龙岩市| 涿鹿县| 澎湖县| 时尚| 陆河县| 遂昌县| 南岸区| 育儿| 斗六市| 吴江市| 双鸭山市| 凤凰县| 南充市| 雷波县| 斗六市| 开江县| 醴陵市| 武义县| 海兴县| 凤山县| 孝昌县| 汶上县| 平泉县| 广水市| 海兴县| 增城市| 壶关县| 罗平县| 伊春市| 陆河县| 河东区| 开封市| 雷山县| 乐都县| 时尚| 阳高县| 定兴县| 滁州市| 桐庐县|