資源簡介
用Python做的24點游戲
代碼片段和文件信息
#!/usr/bin/env?python
#--coding:utf-8--
import?stringtimeargparsemath
import?traceback
from?multiprocessing?import?Process?LockPool
__author__=“CHANG?Tiangen“
__date__=“20121102“
__copyright__=“Copyright?2012?a?game?for?fun“
__license__=“GPL“
__version__=“0.1“
__email__=“changtiangen@gmail.com“
__status__=“Prototype“
__credits__=[]
def?create_help_parser():
??????epilog_string=“Any?bug?is?welcome?reported?to?changtiangen@gmail.com“
??????description_string=‘The?programe?is?going?to?caculate?whether?the?line?integer?vector??in?the?data?file?can?obtain?24?by?combination?of?\‘+\‘\‘-\‘\‘*\‘\‘/\‘.‘
??????parser?=?argparse.ArgumentParser(description=description_stringepilog=epilog_string)
??????parser.add_argument(‘-f‘?‘--file‘?dest=‘fnIn‘?help=‘input?file?name.‘?required=True)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????50??2012-11-02?22:25??24pointsGame\pointData.txt
?????文件???????5064??2012-11-02?22:23??24pointsGame\points.py
?????文件???????5695??2012-11-27?16:20??24pointsGame\points.pyc
?????文件?????????94??2012-11-27?16:20??24pointsGame\pointSol.txt
?????目錄??????????0??2012-11-27?16:20??24pointsGame
-----------?---------??----------?-----??----
????????????????10903????????????????????5
- 上一篇:python 貪吃蛇 游戲
- 下一篇:Python爬取公眾號文章
評論
共有 條評論