@@ -20,153 +20,243 @@ stackoverflow上Python相关回答整理翻译
20
20
### 目录
21
21
> 基础
22
22
23
- * 控制流
24
- -rw-r--r-- 1 ken staff 5425 Sep 21 11:48 qa-control-flow.md
25
- * 字符串
26
- -rw-r--r-- 1 ken staff 7987 Sep 21 11:06 qa-string.md
27
- * 文件
28
- -rw-r--r-- 1 ken staff 6385 Sep 21 11:09 qa-file.md
29
- * 数学相关
30
- -rw-r--r-- 1 ken staff 1310 Sep 21 11:48 qa-math.md
23
+ * [ 控制流] https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-control-flow.md )
24
+ * [ 字符串] https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-string.md )
25
+ * [ 文件] https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-file.md )
26
+ * [ 数学相关] https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-math.md )
31
27
32
28
33
29
> 基本数据结构
34
30
35
- * 列表
36
- -rw-r--r-- 1 ken staff 8035 Sep 21 11:06 qa-list.md
37
- * 元组
38
- -rw-r--r-- 1 ken staff 0 Sep 15 17:13 qa-tuple.md
39
- * 字典
40
- -rw-r--r-- 1 ken staff 4480 Sep 15 17:36 qa-dict.md
31
+ * [ 列表] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-list.md )
32
+ * [ 元组] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-tuple.md )
33
+ * [ 字典] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-dict.md )
41
34
42
35
> 进阶
43
36
44
- * 函数
45
- -rw-r--r-- 1 ken staff 1849 Sep 21 11:43 qa-func.md
46
- * 内置函数
47
- -rw-r--r-- 1 ken staff 3091 Sep 21 11:48 qa-built-in.md
48
- * 异常
49
- -rw-r--r-- 1 ken staff 3485 Sep 21 11:43 qa-exception.md
50
- * 模块
51
- -rw-r--r-- 1 ken staff 4368 Sep 21 11:48 qa-std-modules.md
52
- -rw-r--r-- 1 ken staff 660 Sep 21 11:13 qa-modules.md
53
- -rw-r--r-- 1 ken staff 1030 Sep 21 11:48 qa-datetime.md
37
+ * [ 函数] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-func.md )
38
+ * [ 内置函数] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-built-in.md )
39
+ * [ 异常] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-exception.md )
40
+ * 模块
41
+ [ 模块] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-modules.md )
42
+ [ 标准库] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-std-modules.md )
43
+ [ 日期] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-datetime.md )
54
44
55
- * oop
56
- -rw-r--r-- 1 ken staff 9772 Sep 21 11:13 qa-oop.md
45
+ * [ oop] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-oop.md )
57
46
58
47
> 其他
59
48
60
- * pip/easy_install
61
- -rw-r--r-- 1 ken staff 1729 Sep 15 17:36 qa-pip-easy_install.md
49
+ * [ pip/easy_install] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-pip-easy_install.md )
62
50
63
- * 其他
64
- -rw-r--r-- 1 ken staff 3156 Sep 21 11:48 qa-others.md
51
+ * [ 其他] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-others.md )
65
52
66
53
67
54
### 已翻译问题链接(去重)
55
+
68
56
qa-built-in.md:问题 - http://stackoverflow.com/questions/230751/how-to-flush-output-of-python-print
57
+
69
58
qa-built-in.md:重复问题 - http://stackoverflow.com/questions/107705/python-output-buffering
59
+
70
60
qa-built-in.md:问题 - http://stackoverflow.com/questions/1835018/python-check-if-an-object-is-a-list-or-tuple-but-not-string
61
+
71
62
qa-built-in.md:问题 - http://stackoverflow.com/questions/152580/whats-the-canonical-way-to-check-for-type-in-python
63
+
72
64
qa-built-in.md:问题 - http://stackoverflow.com/questions/402504/how-to-determine-the-variable-type-in-python
65
+
73
66
qa-built-in.md:另外一个相同的问题 - http://stackoverflow.com/questions/2225038/python-determine-the-type-of-an-object
67
+
74
68
qa-control-flow.md:问题 - http://stackoverflow.com/questions/73663/terminating-a-python-script
69
+
75
70
qa-control-flow.md:问题 - http://stackoverflow.com/questions/26595/is-there-any-difference-between-foo-is-none-and-foo-none
71
+
76
72
qa-control-flow.md:问题 - http://stackoverflow.com/questions/522563/accessing-the-index-in-python-for-loops
73
+
77
74
qa-control-flow.md:问题 - http://stackoverflow.com/questions/53162/how-can-i-do-a-line-break-line-continuation-in-python
75
+
78
76
qa-control-flow.md:问题 - http://stackoverflow.com/questions/9284350/why-does-1-in-1-0-true-evaluate-to-false
77
+
79
78
qa-control-flow.md:问题 - http://stackoverflow.com/questions/60208/replacements-for-switch-statement-in-python
79
+
80
80
qa-control-flow.md:问题 - http://stackoverflow.com/questions/2710940/python-if-x-is-not-none-or-if-not-x-is-none
81
+
81
82
qa-control-flow.md:问题 - http://stackoverflow.com/questions/423379/using-global-variables-in-a-function-other-than-the-one-that-created-them
83
+
82
84
qa-datetime.md:问题 - http://stackoverflow.com/questions/1697815/how-do-you-convert-a-python-time-struct-time-object-into-a-datetime-object
85
+
83
86
qa-datetime.md:问题 - http://stackoverflow.com/questions/415511/how-to-get-current-time-in-python
87
+
84
88
qa-dict.md:问题 - http://stackoverflow.com/questions/1747817/python-create-a-dictionary-with-list-comprehension
89
+
85
90
qa-dict.md:问题 - http://stackoverflow.com/questions/1323410/has-key-or-in
91
+
86
92
qa-dict.md:问题 - http://stackoverflow.com/questions/1602934/check-if-a-given-key-already-exists-in-a-dictionary
93
+
87
94
qa-dict.md:问题 - http://stackoverflow.com/questions/1024847/add-to-a-dictionary-in-python
95
+
88
96
qa-dict.md:问题 - http://stackoverflow.com/questions/1305532/convert-python-dict-to-object
97
+
89
98
qa-dict.md:问题 - http://stackoverflow.com/questions/38987/how-can-i-merge-union-two-python-dictionaries-in-a-single-expression
99
+
90
100
qa-dict.md:问题 - http://stackoverflow.com/questions/209840/map-two-lists-into-a-dictionary-in-python
101
+
91
102
qa-dict.md:问题 - http://stackoverflow.com/questions/72899/in-python-how-do-i-sort-a-list-of-dictionaries-by-values-of-the-dictionary
103
+
92
104
qa-exception.md:问题 - http://stackoverflow.com/questions/1319615/proper-way-to-declare-custom-exceptions-in-modern-python
105
+
93
106
qa-exception.md:问题 - http://stackoverflow.com/questions/2052390/how-do-i-manually-throw-raise-an-exception-in-python
107
+
94
108
qa-exception.md:问题 - http://stackoverflow.com/questions/6470428/catch-multiple-exceptions-in-one-line-except-block
109
+
95
110
qa-exception.md:问题 - http://stackoverflow.com/questions/944592/best-practice-for-python-assert
111
+
96
112
qa-file.md:问题 - http://stackoverflow.com/questions/273192/python-best-way-to-create-directory-if-it-doesnt-exist-for-file-write
113
+
97
114
qa-file.md:问题 - http://stackoverflow.com/questions/123198/how-do-i-copy-a-file-in-python
115
+
98
116
qa-file.md:问题 - http://stackoverflow.com/questions/275018/how-can-i-remove-chomp-a-newline-in-python
117
+
99
118
qa-file.md:类似问题 - http://stackoverflow.com/questions/761804/trimming-a-string-in-python
119
+
100
120
qa-file.md:问题 - http://stackoverflow.com/questions/237079/how-to-get-file-creation-modification-date-times-in-python
121
+
101
122
qa-file.md:问题 - http://stackoverflow.com/questions/466345/converting-string-into-datetime
123
+
102
124
qa-file.md:问题 - http://stackoverflow.com/questions/5137497/find-current-directory-and-files-directory
125
+
103
126
qa-file.md:问题 - http://stackoverflow.com/questions/3964681/find-all-files-in-directory-with-extension-txt-with-python
127
+
104
128
qa-file.md:问题 - http://stackoverflow.com/questions/3277503/python-read-file-line-by-line-into-array
129
+
105
130
qa-file.md:问题 - http://stackoverflow.com/questions/4706499/how-do-you-append-to-file-in-python
131
+
106
132
qa-file.md:问题 - http://stackoverflow.com/questions/541390/extracting-extension-from-filename-in-python
133
+
107
134
qa-file.md:问题 - http://stackoverflow.com/questions/3207219/how-to-list-all-files-of-a-directory-in-python
135
+
108
136
qa-file.md:重复问题 - http://stackoverflow.com/questions/120656/directory-listing-in-python
137
+
109
138
qa-file.md:问题 - http://stackoverflow.com/questions/1450393/how-do-you-read-from-stdin-in-python
139
+
110
140
qa-func.md:问题 - http://stackoverflow.com/questions/251464/how-to-get-the-function-name-as-string-in-python
141
+
111
142
qa-func.md:问题 - http://stackoverflow.com/questions/3061/calling-a-function-from-a-string-with-the-functions-name-in-python
143
+
112
144
qa-func.md:问题 - http://stackoverflow.com/questions/36901/what-does-double-star-and-star-do-for-python-parameters
145
+
113
146
qa-list.md:问题 - http://stackoverflow.com/questions/509211/the-python-slice-notation
147
+
114
148
qa-list.md:问题 - http://stackoverflow.com/questions/53513/python-what-is-the-best-way-to-check-if-a-list-is-empty
149
+
115
150
qa-list.md:问题 - http://stackoverflow.com/questions/1720421/merge-two-lists-in-python
151
+
116
152
qa-list.md:问题 - http://stackoverflow.com/questions/518021/getting-the-length-of-an-array-in-python
153
+
117
154
qa-list.md:问题 - http://stackoverflow.com/questions/2612802/how-to-clone-a-list-in-python
155
+
118
156
qa-list.md:问题 - http://stackoverflow.com/questions/252703/python-append-vs-extend
157
+
119
158
qa-list.md:问题 - http://stackoverflow.com/questions/306400/how-do-i-randomly-select-an-item-from-a-list-using-python
159
+
120
160
qa-list.md:问题 - http://stackoverflow.com/questions/627435/how-to-remove-an-element-from-a-list-by-index-in-python
161
+
121
162
qa-list.md:问题 - http://stackoverflow.com/questions/930397/how-to-get-the-last-element-of-a-list
163
+
122
164
qa-list.md:问题 - http://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python
165
+
123
166
qa-list.md:问题 - http://stackoverflow.com/questions/480214/how-do-you-remove-duplicates-from-a-list-in-python-whilst-preserving-order
167
+
124
168
qa-list.md:问题 - http://stackoverflow.com/questions/1207406/remove-items-from-a-list-while-iterating-in-python
169
+
125
170
qa-list.md:问题 - http://stackoverflow.com/questions/176918/in-python-how-do-i-find-the-index-of-an-item-given-a-list-containing-it
171
+
126
172
qa-list.md:问题 - http://stackoverflow.com/questions/952914/making-a-flat-list-out-of-list-of-lists-in-python
173
+
127
174
qa-math.md:问题 - http://stackoverflow.com/questions/1476/how-do-you-express-binary-literals-in-python
175
+
128
176
qa-math.md:问题 - http://stackoverflow.com/questions/209513/convert-hex-string-to-int-in-python
177
+
129
178
qa-math.md:问题 - http://stackoverflow.com/questions/1267869/how-can-i-force-division-to-be-floating-point-in-python
179
+
130
180
qa-modules.md:问题 - http://stackoverflow.com/questions/448271/what-is-init-py-for
181
+
131
182
qa-modules.md:问题 - http://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path
183
+
132
184
qa-oop.md:问题 - http://stackoverflow.com/questions/2709821/python-self-explained
185
+
133
186
qa-oop.md:问题 - http://stackoverflow.com/questions/70528/why-are-pythons-private-methods-not-actually-private
187
+
134
188
qa-oop.md:问题 - http://stackoverflow.com/questions/38238/what-are-class-methods-in-python-for
189
+
135
190
qa-oop.md:问题 - http://stackoverflow.com/questions/674304/pythons-use-of-new-and-init
191
+
136
192
qa-oop.md:来自 - http://mail.python.org/pipermail/tutor/2008-April/061426.html
193
+
137
194
qa-oop.md:问题 - http://stackoverflow.com/questions/510972/getting-the-class-name-of-an-instance-in-python
195
+
138
196
qa-oop.md:问题 - http://stackoverflow.com/questions/136097/what-is-the-difference-between-staticmethod-and-classmethod-in-python
197
+
139
198
qa-oop.md:问题 - http://stackoverflow.com/questions/735975/static-methods-in-python
199
+
140
200
qa-oop.md:问题 - http://stackoverflow.com/questions/68645/static-class-variables-in-python
201
+
141
202
qa-oop.md:问题 - http://stackoverflow.com/questions/610883/how-to-know-if-an-object-has-an-attribute-in-python
203
+
142
204
qa-oop.md:问题 - http://stackoverflow.com/questions/31875/is-there-a-simple-elegant-way-to-define-singletons-in-python
205
+
143
206
qa-others.md:问题 - http://stackoverflow.com/questions/170921/should-i-learn-python-2-before-3-or-start-directly-from-python-3
207
+
144
208
qa-others.md:问题 - http://stackoverflow.com/questions/1534210/use-different-python-version-with-virtualenv
209
+
145
210
qa-others.md:问题 - http://stackoverflow.com/questions/990754/how-to-leave-a-python-virtualenv
211
+
146
212
qa-others.md:问题 - http://stackoverflow.com/questions/193161/what-is-the-best-project-structure-for-a-python-application
213
+
147
214
qa-others.md:问题 - http://stackoverflow.com/questions/13311094/counter-in-collections-module-python
215
+
148
216
qa-pip-easy_install.md:问题 - http://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip
217
+
149
218
qa-pip-easy_install.md:问题 - http://stackoverflow.com/questions/1231688/how-do-i-remove-packages-installed-with-pythons-easy-install
219
+
150
220
qa-pip-easy_install.md:问题 - http://stackoverflow.com/questions/122327/how-do-i-find-the-location-of-my-python-site-packages-directory
221
+
151
222
qa-pip-easy_install.md:问题 - http://stackoverflow.com/questions/1550226/python-setup-py-uninstall
223
+
152
224
qa-pip-easy_install.md:问题 - http://stackoverflow.com/questions/739993/get-a-list-of-installed-python-modules
225
+
153
226
qa-std-modules.md:问题 - http://stackoverflow.com/questions/712791/json-and-simplejson-module-differences-in-python
227
+
154
228
qa-std-modules.md:问题 - http://stackoverflow.com/questions/22676/how-do-i-download-a-file-over-http-using-python
229
+
155
230
qa-std-modules.md:问题 - http://stackoverflow.com/questions/4480075/argparse-optional-positional-arguments
231
+
156
232
qa-std-modules.md:问题 - http://stackoverflow.com/questions/842059/is-there-a-portable-way-to-get-the-current-username-in-python
233
+
157
234
qa-std-modules.md:问题 - http://stackoverflow.com/questions/1912434/how-do-i-parse-xml-in-python
235
+
158
236
qa-string.md:问题 - http://stackoverflow.com/questions/493819/python-join-why-is-it-string-joinlist-instead-of-list-joinstring
237
+
159
238
qa-string.md:问题 - http://stackoverflow.com/questions/6797984/how-to-convert-string-to-lowercase-in-python
239
+
160
240
qa-string.md:问题 - http://stackoverflow.com/questions/931092/reverse-a-string-in-python
241
+
161
242
qa-string.md:问题 - http://stackoverflow.com/questions/3437059/does-python-have-a-string-contains-method
243
+
162
244
qa-string.md:问题 - http://stackoverflow.com/questions/354038/how-do-i-check-if-a-string-is-a-number-in-python
245
+
163
246
qa-string.md:问题 - http://stackoverflow.com/questions/5082452/python-string-formatting-vs-format
247
+
164
248
qa-string.md:问题 - http://stackoverflow.com/questions/988228/converting-a-string-to-dictionary
249
+
165
250
qa-string.md:问题 - http://stackoverflow.com/questions/227459/ascii-value-of-a-character-in-python
251
+
166
252
qa-string.md:问题 - http://stackoverflow.com/questions/1059559/python-strings-split-with-multiple-separators
253
+
167
254
qa-string.md:问题 - http://stackoverflow.com/questions/1185524/how-to-trim-whitespace-including-tabs
255
+
168
256
qa-string.md:问题 - http://stackoverflow.com/questions/663171/is-there-a-way-to-substring-a-string-in-python
257
+
169
258
qa-string.md:问题 - http://stackoverflow.com/questions/1504717/python-vs-is-comparing-strings-is-fails-sometimes-why
259
+
170
260
qa-string.md:问题 - http://stackoverflow.com/questions/339007/python-nicest-way-to-pad-zeroes-to-string
171
261
172
262
0 commit comments