You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
README.md
书名:Python编程:从入门到实践(第2版) 作者:[美]埃里克•马瑟斯
Index | FileName | Comment |
---|---|---|
1 | 00print.py | #简易输出 |
2 | 01variable.py | #简易变量 |
3 | 02string.py | #字符串型 |
4 | 03title&upper&lower.py | #大小写型 |
5 | 04fullName.py | #拼接字符 |
6 | 05oldFormat&classicPrintf.py | #旧版输出 |
7 | 06_t_n.py | #段首换行 |
8 | 07strip.py | #去除空格 |
9 | 08apostrophe.py | #单双引号 |
10 | 09numberBug.py | #储存缺陷 |
11 | 10float.py | #浮点特性 |
12 | 11numberUnderline.py | #数下划线 |
13 | 12declareMultiplevariables.py | #多量赋值 |
14 | 13constant(实际没有常量,约定俗成大写) | #常量赋值 |
15 | 14comment | #单多注释 |
16 | 15zenOfpython(推荐编写方式) | #编程之禅 |
17 | 16list&accessList.py | #访问列表 |
18 | 17modifyList.py | #修改列表 |
19 | 18sort&reverseSort.py | #排序列表 |
20 | 19sorted.py | #临时排序 |
21 | 20reverse.py | #相反排序 |
22 | 21lenList.py | #列表长度 |
23 | 22forList.py | #循环列表 |
24 | 23forPrint.py | #循环输出 |
25 | 24afterFor.py | #环外输出 |
26 | 25forError.py(循环错误案例) | #循环错误 |
27 | 26forRange.py | #循环范围 |
28 | 27list.py | #使列表化 |
29 | 28rangeStep.py | #范围步长 |
30 | 29EX_squares.py | #二八案例 |
31 | 30min&max&sum.py | #极值综合 |
32 | 31EX0_squares.py | #案例变种 |
33 | 32slice.py(实际类型还是列表) | #切片类型 |
34 | 33forSlice.py | #循环切片 |
35 | 34copyList.py | #复制列表 |
36 | 35improperCopylist.py | #不恰当的复制列表 |
37 | 36tuple.py | #元组类型 |
38 | 37forTuple.py | #循环元组 |
39 | 38modifyTuple.py | #修改元组 |
40 | 39if.py | #与门判断 |
41 | 40EX_==.py | #判断案例 |
42 | 41EX_!=.py | #非门判断 |
43 | 42EX0_==&and.py | #与门判断 |
44 | 43or.py | #或门判断 |
45 | 44in.py | #是否包含 |
46 | 45notIn.py | #是否不含 |
47 | 46boolean.py | #布尔类型 |
48 | 47ifElse.py | #真否判断 |
49 | 48ifElifElse | #真条判断 |
50 | 49EX_ifElseElse.py | #条件判断案例 |
51 | 50EX0_ifElif.py | #条件判断案例 |
52 | 51EX1_addToppings.py | #添加佐料 |
53 | 52EX2_favorFruits.py | #喜欢水果 |
54 | 53EX3_addToppings.py | #缺失佐料 |
55 | 54EX4_addToppings.py | #不要佐料 |
56 | 55EX5_addToppings.py | #有效佐料 |
57 | 56helloUser.py | #欢迎用户 |
58 | 57checkName.py | #检查姓名 |
59 | 58numberList.py | #对应序列 |
60 | 59ifType.py | #如果语句 |
61 | 60dictionary.py | #字典类型 |
62 | 61killAlien.py | #击杀异形 |
63 | 62dictionaryAddKey.py | #字典增值 |
64 | 63emptyDictionary.py | #空的字典 |
65 | 64accessDictionaryVal.py | #修改字典 |
66 | 65alienSpeed.py | #异形速度 |
67 | 66deleteDictionaryKey.py | #删除字键 |
68 | 67favoriteLanguages.py | #键值运用 |
69 | 68getEmptyKey.py | #获取空键 |
70 | 69personInformation.py | #个人信息 |
71 | 70forDictionary.py | #循环字典 |
72 | 71forFavoriteDictionary.py | #循环喜好 |
73 | 72forDictionaryKey.py | #循环字键 |
74 | 73EX0_useNameFilterDictionary.py | #过滤循环 |
75 | 74EX1_checkNameInDictionary.py | #确认字键 |
76 | 75EX2_forSortedDictionaryKey.py | #循环排序字典 |
77 | 76forDictionaryVal.py | #循环键值 |
78 | 77forSetDictionary.py | #循环唯一字键 |
79 | 78rivers.py | #循环河流 |
80 | 79nestedStructure.py | #嵌套结构 |
81 | 80dictionaryList.py | #字典列表 |
82 | 81rangeAlien.py | #生成异形 |
83 | 82alienListChange.py | #改变异形 |
84 | 83pizza.py | #披萨字典 |
85 | 84favoriteLanguages.py | #编程语言案例 |
86 | 85EX0_favoriteLanguages.py | #编程语言案例 |
87 | 86dictionaryInDictionary.py | #字典嵌套字典 |
88 | 87cites.py | #字典案例城市信息 |
89 | 88input.py | #用户输入 |
90 | 89EX0_input.py | #输入案例 |
91 | 90EX1_input.py | #输入案例 |
92 | 91typeToInt.py | #整形换转 |
93 | 92remainder.py | #余数计算 |
94 | 93evenOrOdd.py | #单双类型 |
95 | 94AmultipleOfTen.py | #十的倍数 |
96 | 95while.py | #条件循环 |
97 | 96endWhile.py | #结束循环 |
98 | 97checkActiveWhile.py | #检查循环 |
99 | 98breakWhile.py | #打破循环 |
100 | 99continue.py | #继续循环 |
101 | 100counting.py | #避免无限循环 |
102 | 101movieTicket.py | #岁数分价 |
103 | 102whileDictionary.py | #循环字典 |
104 | 103confirmedUser.py | #验证用户 |
105 | 104deleteSpeciallyVariabels.py | #删除特定元素 |
106 | 105mountainPoll.py | #山峰投票 |
107 | 106sandwichOrders.py | #三明治店 |
108 | 107defFuction.py | #定义函数 |
109 | 108argumentsToFunction.py | #函数传参 |
110 | 109EX0_argumentsToFunction.py | #传参案例一 |
111 | 110EX1_argumentsToFunction.py | #传参案例二 |
112 | 111defaultArguments.py | #默认传参 |
113 | 112avoidArgumentsError.py | #避免传参数错误 |
114 | 113makeShirt.py | #制作短袖 |
115 | 114return.py | #函数回值 |
116 | 115getFormattedMidName.py | #格式姓名 |
117 | 116returnDictionary.py | #返回字典 |
118 | 117personInfo.py | #个人信息 |
119 | 118whileInputFormattedName.py | #个人信息循环 |
120 | 119secrets.py | #秘密模块 |
121 | 120whileInputFormattedNameBreak.py | #个人信息循环打断 |
122 | 121cityName.py | #城市信息 |
123 | 122collectAlbumInfo.py | #收集专辑资料 |
124 | 123transmitList.py | #传入列表 |
125 | 124modifyListVariables.py | #修改列表变量 |
126 | 125EX0_modifyListVariables.py | #建立函数修改列表 |
127 | 126sendMessage.py | #发送信息 |
128 | 127anyArguments.py | #传入多个参数 |
129 | 128userProfile.py | #传入多个字键参数 |
130 | 129makeSandwich.py | #制作三明治 |
131 | 130collectCar.py | #收集汽车信息 |
132 | 131module/131makePizzas.py | #使用披萨模块 |
133 | 132module/132EX0_makingPizzas.py | #导入模块函数 |
134 | 133module/133moduleAs.py | #导入模块作为 |
135 | 133module/134importAllFunction.py | #导入模块所有函数 |
136 | 135class.py | #类型对象 |
137 | 136classes.py | #多个类型对象 |
138 | 137restaurant.py | #餐厅风格 |
139 | 138helloUser.py | #问候用户 |
140 | 139car.py | #汽车信息 |
141 | 140carDefaultValue.py | #汽车默认信息 |
142 | 141carModifyValue.py | #对象数据修改 |
143 | 142classIncrementValue.py | #类别对象增加数值 |
144 | 143restaurantNumberServed.py | #餐厅顾客统计 |
145 | 144loginAttempts.py | #统计登入次数 |
146 | 145inheritance.py | #继承类别 |
147 | 146inheritanceMethod.py | #子级定义函数 |
148 | 147rewriteInheritanceMethod.py | #重写父级函数 |
149 | 148classInClass.py | #类型嵌套类型 |
150 | 149EX0_classInClass.py | #嵌套案例一 |
151 | 150EX1_classInClass.py | #嵌套案例二 |
152 | 151iceCreamStand.py | #雪糕摊位 |
153 | 152-153adminRight/152adminRight.py | #用户权限 |
154 | 152-153adminRight/153adminRight.py | #用户权限 |
155 | 154upgrade_battery.py | #升级电池 |
156 | 155importClassesAlias.py | #导入类型别名 |
157 | 156randint_choice.py | #随机整数模块 |
158 | 157dice.py | #多面骰子 |
159 | 158lottery.py | #彩票概率 |
160 | 159read_whole_file.py | #读取整个文件 |
161 | 160read_file_line.py | #按行读取文件 |
162 | 161read_lines.py | #按行读取文件去空 |
163 | 162pi_string.py | #读取圆周率数 |
164 | 163pi_string.py | #按位读圆周率 |
165 | 164find_birthday_in_pi.py | #查生日圆周率 |
166 | 165replace.py | #替代 |
167 | 166write_message.py | #创建文件写入信息 |
168 | 167add_message.py | #原有文件添加信息 |
169 | 168guest.py | #记录来宾 |
170 | 169try_except.py | #错误控制 |
171 | 170division_calculator.py | #除法计算 |
172 | 171FileNotFoundError.py | #文件未查错误 |
173 | 172word_count.py | #字数统计 |
174 | 173except_pass.py | #静默错误 |
175 | 174plus_calculator.py | #加法计算 |
176 | 175cats&dogs/175cats&dogs.py | #猫狗输出 |
177 | 176count_word.py | #单词个数 |
178 | 177json.py | #JSON_dump_file |
179 | 178number_reader.py | #JSON_read_file |
180 | 179remember_me.py | #JSON_dump_file |
181 | 180greet_user.py | #JSON_read_file |
182 | 181full_json.py | #Sum_JSON_read_dump_file |
183 | 182refactor.py | #JSON_read_dump_file |
184 | 183favorite_number.py | #dump_favorite_number |
185 | 184check_user.py | #Add_check_function |
186 | 185unittest/test_name_function.py | #Unittest_name_function. |
187 | 185unittest/186new_test_name.py | #Unittest_mid_name_function |
188 | 187city/test_city_country_pop_info.py | #Unittest_city_info_funciton |
189 | 188unittest_type_class/188test_survey.py | #Unittest_type_class |
190 | 188unittest_type_class/189unittest_setUp().py | #Unittest_setUp() |
191 | 190unittest_employee | #Unittest_employee |
192 | 191alien_invasion/module_a.py+import_module.py | #if __name__ = '__main__': |
193 | 192alien_invasion/alien_invasion.py | #show_ship |
194 | 192blue_sky/blue_sky.py | #show_alien |
195 | 193alien_check_keydown/alien_invasion.py | #ship_movement |
196 | 194alien/alien.py | #alien_movement |
197 | 195print_keydown/print_keydown.py | #print_keydown |
198 | 196bullet/alien_invasion.py | #show_bullet |
199 | 197side_shoot | #side_shoot |
200 | 198alien_ship | #show_alien_ship |
201 | 199stars | #random_stars |
202 | 200alien_movement | #alien_movement |
203 | 201raindrop | #infinite_raindrop |
204 | 200alien_movement | #different_level_button |
205 | 202matplotlib/202matplotlib.py | #graph_squares |
206 | 202matplotlib/203catter_squares.py | #graph_five_points |
207 | 202matplotlib/204catter_squares.py | #points_modify_color_Blues |
208 | 202matplotlib/205catter_cubes.py | #points_modify_color_plasma |
209 | 202matplotlilb/206rw_walk.py | #graph_random_walk_point |
210 | 202matplotlib/207axis_visible_False. | #graph_axis_visible_False |
211 | 208matplotlib/208molecular_motion.py | #molecular_motion |
212 | 209plotly/209die_visual.py | #die_results_visual |
213 | 209plotly/210EX0_die_visual.py | #EX0_die_results_visual |
214 | 209plotly/211dice_visual.py | #2_die_results_visual |
215 | 209plotly/212die6_die10.visual.py | #die6_die10_results_visual |
216 | 209plotly/213die8_2.py | #2_die8_results_visual |
217 | 209plotly/214die6_3.py | #3_die6_results_visual |
218 | 209plotly/215d6_times_d6.py | #die6_x_die6_results_visual |
219 | 209plotly/216for_d6_2.py | #for_die6xdie6_results_visual |
220 | 209matplotlib/217matplotlib_dice.py | #matplotlib_dice_results_visual |
221 | 209plotly/218plotly_random_walk.py | #plotly_random_walk |
222 | 219csv_file_format/219death_valley_highs_lows.py | #death_valley_highs_lows |
223 | 219csv_file_format/220PRCP.py | #sitka_precipitation |
224 | 219csv_file_format/221sitka_death_valley.py | #sitka_death_valley_temperatures |
225 | 222json_file_format/222eq_explore_data.py | #eq_explore_data |
226 | 222json_file_format/223len_eq_data.py | #len_eq_da |
227 | 222json_file_format/224get_eq_data.py | #get_eq_data |
228 | 222json_file_format/225eq_world_map.py | #eq_data_visual_mapbox |
229 | 222json_file_format/226eq_world_map0.py | #eq_data_visual_mapbox0 |
230 | 222json_file_format/227api_format.py | #api_results_visual |
231 | 222json_file_format/228python_repos.py | #python_repos |
232 | 222json_file_format/229python_repos_visual.py | #python_repos_visual |
233 | 230django/ | #final_django_project~ |