Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

python°²×°Ö®°²×°Ä£¿éÖÆ×÷

pythonµÄeggÎļþÓеãÏñjavaÖеÄjarÎļþ£¬ÊÇÒ»¸ö¹¤³Ì´ò°üÎļþ£¬±ãÓÚ°²×°²¿Ê𣬽ö´ËÒ»µã£¬¸ø¶àÉÙpythoner´øÀ´Á˶àÉÙ¼¤¶¯¡£
ÈçºÎÖÆ×÷eggÎļþÄØ£¿see¹Ù·½Îĵµhttp://peak.telecommunity.com/DevCenter/PythonEggs£¬
µ½http://pypi.python.org/pypi/setuptoolsÏÂÔØsetuptools°ü£¬È»ºó°²×°£º
python setup.py
1.ÖÆ×÷eggÎļþ
ÏÂÃæ¿ªÊ¼eggÎļþµÄÖÆ×÷£º£¨¼ûÉÏÒ»¸öeggµÄÌû×Ó£¬±È½ÏÏêϸ£©
ÔÚÒª´ò°üµÄÎļþ¼Ð¸¸Ä¿Â¼ÖÐн¨setup.py
#setup.py
view plaincopy to clipboardprint?
#coding=utf8  
 
from setuptools import setup, find_packages  
 
setup(  
    name = "eggtest",  
    version = "0.1",  
    packages = find_packages(),  
 
    description = "egg test demo",  
    long_description = "egg test demo",  
    author = "lidehong",  
    author_email = "idehong@gmail.com",  
 
    license = "GPL",  
    keywords = ("test", "egg"),  
    platforms = "Independant",  
    url = "http://blog.csdn.net/hong201/",   
      

#coding=utf8
from setuptools import setup, find_packages
setup(
    name = "eggtest",
    version = "0.1",
    packages = find_packages(),
    description = "egg test demo",
    long_description = "egg test demo",
    author = "lidehong",
    author_email = "idehong@gmail.com",
    license = "GPL",
    keywords = ("test", "egg"),
    platforms = "Independant",
    url = "http://blog.csdn.net/hong201/",
 
)
 
name£º°üÃû
version£º°æ±¾
packages £º´ò°üµÄÎļþ
description£ºÃèÊöÐÅÏ¢
author£º×÷Õß
url£ºÏÂÔØ


Ïà¹ØÎĵµ£º

pythonѧϰ£¨1£©£­×Öµä (Dictionary)

   
×ֵ䣨Dictionary£©ÊÇÒ»ÖÖÓ³Éä½á¹¹µÄÊý¾ÝÀàÐÍ£¬ÓÉÎÞÐòµÄ“¼ü£­Öµ¶Ô”×é³É¡£×ÖµäµÄ¼ü±ØÐëÊDz»¿É¸Ä±äµÄÀàÐÍ£¬È磺×Ö·û´®£¬Êý×Ö£¬tuple£»Öµ¿É
ÒÔΪÈκÎpythonÊý¾ÝÀàÐÍ¡£
1¡¢Ð½¨×Öµä
>>> dict1={}     
#½¨Á¢Ò»¸ö¿Õ×Öµä
>>> type(dict1)
<ty ......

´î½¨S60ÊÖ»ú¶ËPythonÈí¼þÔËÐÐ,¿ª·¢,·¢²¼Æ½Ì¨

µÚÒ»²½£º´î½¨ÊÖ»úÔËÐÐÆ½Ì¨
ÒªÔÚS60ÊÖ»úÉÏÔËÐÐPY¿ª·¢µÄÈí¼þ,Ê×ÏȾÍÒª´î½¨ÊÖ»úPYÔËÐл·¾³.ŵ»ùÑÇÊÖ»ú±¾Éí²»Ö§³ÖPython,ËùÒÔÒª°²×°Python²å¼þ.
PS£ºÒ»¶¨Òª°²×°ÔÚCÅÌ£¡ÎÒÒ»¿ªÊ¼×°E£¬½á¹û³öÏÖÁ˺ÜÑÏÖØµÄÎÊÌ⣡²»¹ý,×î½üÍøÉÏ·¢ÏÖÓÐEÅ̰æµÄÀ²,Äã¿ÉÒÔ×Ô¼ºÊÔÑéһϣ¬¹þ¹þ
PythonScriptShell_1_4_5_3rdEd.SIS
Pyth ......

Amusing Python 2: range/xrange

ÕâÁ½¸ö»ù±¾É϶¼ÊÇÔÚÑ­»·µÄʱºòÓá£
Python
´úÂë < type="application/x-shockwave-flash" width="14" height="15" src="http://cloudhe.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" src="http://cloudhe.javaeye.com/javascripts/syntaxhighlighter/clipboard_new.swf" flashvars="clipboard=for%20i% ......

Python±ê×¼¿â randomÄ£¿é


Python±ê×¼¿â-randomÄ£¿é
random Ä£¿é°üº¬Ðí¶àËæ»úÊýÉú³ÉÆ÷. »ù±¾Ëæ»úÊýÉú³ÉÆ÷(»ùÓÚ Wichmann ºÍ Hill , 1982 µÄÊýѧÔËËãÀíÂÛ) ¿ÉÒÔͨ¹ýºÜ¶à·½·¨·ÃÎÊ, Èç Example 2-29 Ëùʾ. 2.17.0.1. Example 2-29. ʹÓà random Ä£¿é»ñµÃËæ»úÊý×Ö File: random-example-1.py import random for i i
¡¡¡¡
random Ä£¿é°üº¬Ðí¶àËæ»úÊýÉ ......

ÓÃPythonʵÏÖ¼òµ¥µÄÒÅ´«Ëã·¨

ÓÃPythonʵÏÖ¼òµ¥µÄÒÅ´«Ëã·¨
2010-02-15 14:00
Õ⼸ÌìÒ»Ö±ÔÚÓÃPythonдһ¸ö¼òµ¥µÄÒÅ´«Ëã·¨£¬ºÃ×Ô¼ºÄÃÀ´ÊµÑé¡£¶Ï¶ÏÐøÐøµÄÕÛÌÚÁ˼¸Ì죬½ñÌìÏÂÎçÖÕÓÚдÁËÒ»¸ö¼òµ¥µÄ³öÀ´¡£Õû¸ö´úÂ뻹ÊÇ·ÂÕÕ¡¶ÓÎÏ·±à³ÌÖеÄÈ˹¤ÖÇÄܼ¼Êõ¡·ÖеĴúÂëÀ´Ð´µÄ¡£Èç¹ûÏë¼òµ¥µÄѧϰһÏÂÒÅ´«Ëã·¨ÒÔ¼°¼òµ¥Ó¦Óá¶ÓÎÏ·±à³ÌÖеÄÈ˹¤ÖÇÄܼ¼Êõ¡·ÊDz»´íµÄÑ¡Ôñ¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ