• 大小: 42.89MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-22
  • 语言: Python
  • 标签: From  Novice  to  P  

资源简介

Python基础教程 Beginning Python From Novice to Professional.zip,收录了 Python基础教程 Beginning Python From Novice to Professional 中英文各版本和源码,包括(第2版)和 (第3版),都有详尽的书签,不是一级目录的,有的电子版还没有。

资源截图

代码片段和文件信息

# Print out a date given year month and day as numbers

months = [
    ‘January‘
    ‘February‘
    ‘March‘
    ‘April‘
    ‘May‘
    ‘June‘
    ‘July‘
    ‘August‘
    ‘September‘
    ‘October‘
    ‘November‘
    ‘December‘
]

# A list with one ending for each number from 1 to 31
endings = [‘st‘ ‘nd‘ ‘rd‘] + 17 * [‘th‘] \
        + [‘st‘ ‘nd‘ ‘rd‘] +  7 * [‘th‘] \
        + [‘st‘]

year    = raw_input(‘Year: ‘)
month   = raw_input(‘Month (1-12): ‘)
day     = raw_input(‘Day (1-31): ‘)

month_number = int(month)
day_number = int(day)

# Remember to subtract 1 from month and day to get a correct index
month_name = months[month_number-1]
ordinal = day + endings[day_number-1]

print month_name + ‘ ‘ + ordinal + ‘ ‘ + year

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        746  2008-07-16 23:18  FromNoviceToProfessional\Chapter02\listing2-1.py

     文件        148  2008-07-16 23:18  FromNoviceToProfessional\Chapter02\listing2-2.py

     文件        683  2008-07-16 23:18  FromNoviceToProfessional\Chapter02\listing2-3.py

     文件        270  2008-07-16 23:18  FromNoviceToProfessional\Chapter02\listing2-4.py

     文件        625  2008-07-16 23:18  FromNoviceToProfessional\Chapter03\listing3-1.py

     文件       1022  2008-07-16 23:18  FromNoviceToProfessional\Chapter04\listing4-1.py

     文件        619  2008-07-16 23:18  FromNoviceToProfessional\Chapter04\listing4-2.py

     文件         32  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-1.py

     文件        157  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-10.py

     文件        796  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-11.py

     文件         50  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-12.txt

     文件        104  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-13.txt

     文件        251  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-14.txt

     文件         50  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-2.py

     文件         70  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-3.py

     文件        110  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-4.py

     文件         83  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-5.py

     文件        171  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-6.py

     文件        351  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-7.py

     文件       1578  2008-07-16 23:18  FromNoviceToProfessional\Chapter10\listing10-8.py

     文件        124  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-1.py

     文件         73  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-10.py

     文件         73  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-11.py

     文件         61  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-12.py

     文件         45  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-13.py

     文件         66  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-2.txt

     文件         67  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-3.txt

     文件         16  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-4.txt

     文件         18  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-5.txt

     文件         96  2008-07-16 23:18  FromNoviceToProfessional\Chapter11\listing11-6.py

............此处省略109个文件信息

评论

共有 条评论