@@ -54,47 +54,9 @@ stackoverflow上Python相关回答整理翻译(相对来说都比较简单/散
54
54
55
55
* [ 其他] ( https://github.com/wklken/stackoverflow-py-top-qa/blob/master/contents/qa-others.md )
56
56
57
- ### 待翻译问题链接(还剩35个问题)
58
-
59
- http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python
60
- http://stackoverflow.com/questions/682504/what-is-a-clean-pythonic-way-to-have-multiple-constructors-in-python
61
- http://stackoverflow.com/questions/509211/pythons-slice-notation
62
- http://stackoverflow.com/questions/15376509/when-is-i-x-different-from-i-i-x-in-python
63
- http://stackoverflow.com/questions/132058/showing-the-stack-trace-from-a-running-python-application
64
- http://stackoverflow.com/questions/419163/what-does-if-name-main-do
65
- http://stackoverflow.com/questions/279237/import-a-module-from-a-relative-path
66
- http://stackoverflow.com/questions/4324558/whats-the-proper-way-to-install-pip-virtualenv-and-distribute-for-python
67
- http://stackoverflow.com/questions/306313/python-is-operator-behaves-unexpectedly-with-integers
68
- http://stackoverflow.com/questions/455612/limiting-floats-to-two-decimal-points
69
- http://stackoverflow.com/questions/54867/old-style-and-new-style-classes-in-python
70
- http://stackoverflow.com/questions/432842/how-do-you-get-the-logical-xor-of-two-variables-in-python
71
- http://stackoverflow.com/questions/626759/whats-the-difference-between-list-and-tuples
72
- http://stackoverflow.com/questions/682367/good-python-modules-for-fuzzy-string-comparison
73
- http://stackoverflow.com/questions/72852/how-to-do-relative-imports-in-python
74
- http://stackoverflow.com/questions/36901/what-does-double-star-and-star-do-for-python-parameters
75
- http://stackoverflow.com/questions/5082452/python-string-formatting-vs-format
76
- http://stackoverflow.com/questions/261638/how-do-i-protect-python-code
77
- http://stackoverflow.com/questions/944592/best-practice-for-python-assert
78
- http://stackoverflow.com/questions/11241523/why-does-python-code-run-faster-in-a-function
79
- http://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n-in-python
80
- http://stackoverflow.com/questions/42950/get-last-day-of-the-month-in-python
81
- http://stackoverflow.com/questions/6618002/python-property-versus-getters-and-setters
82
- http://stackoverflow.com/questions/904036/chain-calling-parent-constructors-in-python
83
- http://stackoverflow.com/questions/17160162/what-is-in-python-2-7
84
- http://stackoverflow.com/questions/191673/preferred-python-unit-testing-framework
85
- http://stackoverflow.com/questions/61151/where-do-the-python-unit-tests-go
86
- http://stackoverflow.com/questions/1301346/the-meaning-of-a-single-and-a-double-underscore-before-an-object-name-in-python
87
- http://stackoverflow.com/questions/6344076/differences-between-distribute-distutils-setuptools-and-distutils2
88
- http://stackoverflow.com/questions/1549801/differences-between-isinstance-and-type-in-python
89
- http://stackoverflow.com/questions/323972/is-there-any-way-to-kill-a-thread-in-python
90
- http://stackoverflow.com/questions/1485841/behaviour-of-increment-and-decrement-operators-in-python
91
- http://stackoverflow.com/questions/100003/what-is-a-metaclass-in-python/6581949#6581949
92
- http://stackoverflow.com/questions/986006/how-do-i-pass-a-variable-by-reference
93
- http://stackoverflow.com/questions/1132941/least-astonishment-in-python-the-mutable-default-argument
94
- http://stackoverflow.com/questions/2970608/what-are-named-tuples-in-python
95
- http://stackoverflow.com/questions/1436703/difference-between-str-and-repr-in-python
96
- http://stackoverflow.com/questions/972/adding-a-method-to-an-existing-object
57
+ ### 待翻译问题链接(还剩0问题)
97
58
59
+ qa-tuple.md:问题 (http://stackoverflow.com/questions/2970608/what-are-named-tuples-in-python )
98
60
99
61
### 已翻译问题链接(去重)
100
62
@@ -117,6 +79,8 @@ qa-built-in.md:问题 (http://stackoverflow.com/questions/13857/can-you-explain-
117
79
118
80
qa-built-in.md:问题 (http://stackoverflow.com/questions/890128/python-lambda-why )
119
81
82
+ qa-built-in.md:问题 (http://stackoverflow.com/questions/1436703/difference-between-str-and-repr-in-python )
83
+
120
84
qa-control-flow.md:问题 (http://stackoverflow.com/questions/73663/terminating-a-python-script )
121
85
122
86
qa-control-flow.md:问题 (http://stackoverflow.com/questions/26595/is-there-any-difference-between-foo-is-none-and-foo-none )
@@ -141,6 +105,8 @@ qa-control-flow.md:问题 (http://stackoverflow.com/questions/743164/do-while-lo
141
105
142
106
qa-control-flow.md:问题 (http://stackoverflow.com/questions/135041/should-you-always-favor-xrange-over-range )
143
107
108
+ qa-control-flow.md:问题 (http://stackoverflow.com/questions/15376509/when-is-i-x-different-from-i-i-x-in-python )
109
+
144
110
qa-datetime.md:问题 (http://stackoverflow.com/questions/1697815/how-do-you-convert-a-python-time-struct-time-object-into-a-datetime-object )
145
111
146
112
qa-datetime.md:问题 (http://stackoverflow.com/questions/415511/how-to-get-current-time-in-python )
@@ -179,6 +145,8 @@ qa-exception.md:问题 (http://stackoverflow.com/questions/944592/best-practice-
179
145
180
146
qa-exception.md:问题 (http://stackoverflow.com/questions/5574702/how-to-print-to-stderr-in-python )
181
147
148
+ qa-exception.md:问题 (http://stackoverflow.com/questions/944592/best-practice-for-python-assert )
149
+
182
150
qa-file.md:问题 (http://stackoverflow.com/questions/82831/how-do-i-check-if-a-file-exists-using-python )
183
151
184
152
qa-file.md:问题 (http://stackoverflow.com/questions/273192/python-best-way-to-create-directory-if-it-doesnt-exist-for-file-write )
@@ -219,6 +187,14 @@ qa-func.md:问题 (http://stackoverflow.com/questions/1098549/proper-way-to-use-
219
187
220
188
qa-func.md:问题 (http://stackoverflow.com/questions/3394835/args-and-kwargs )
221
189
190
+ qa-func.md:问题 (http://stackoverflow.com/questions/682504/what-is-a-clean-pythonic-way-to-have-multiple-constructors-in-python )
191
+
192
+ qa-func.md:问题 (http://stackoverflow.com/questions/36901/what-does-double-star-and-star-do-for-python-parameters )
193
+
194
+ qa-func.md:问题 (http://stackoverflow.com/questions/11241523/why-does-python-code-run-faster-in-a-function )
195
+
196
+ qa-func.md:问题 (http://stackoverflow.com/questions/986006/how-do-i-pass-a-variable-by-reference )
197
+
222
198
qa-list.md:问题 (http://stackoverflow.com/questions/509211/the-python-slice-notation )
223
199
224
200
qa-list.md:问题 (http://stackoverflow.com/questions/53513/python-what-is-the-best-way-to-check-if-a-list-is-empty )
@@ -249,6 +225,10 @@ qa-list.md:问题 (http://stackoverflow.com/questions/952914/making-a-flat-list-
249
225
250
226
qa-list.md:问题 (http://stackoverflow.com/questions/1247486/python-list-comprehension-vs-map )
251
227
228
+ qa-list.md:问题 (http://stackoverflow.com/questions/626759/whats-the-difference-between-list-and-tuples )
229
+
230
+ qa-list.md:问题 (http://stackoverflow.com/questions/17160162/what-is-in-python-2-7 )
231
+
252
232
qa-math.md:问题 (http://stackoverflow.com/questions/1476/how-do-you-express-binary-literals-in-python )
253
233
254
234
qa-math.md:问题 (http://stackoverflow.com/questions/209513/convert-hex-string-to-int-in-python )
@@ -257,6 +237,16 @@ qa-math.md:问题 (http://stackoverflow.com/questions/1267869/how-can-i-force-di
257
237
258
238
qa-math.md:问题 (http://stackoverflow.com/questions/961632/converting-integer-to-string-in-python )
259
239
240
+ qa-math.md:问题 (http://stackoverflow.com/questions/306313/python-is-operator-behaves-unexpectedly-with-integers )
241
+
242
+ qa-math.md:问题 (http://stackoverflow.com/questions/455612/limiting-floats-to-two-decimal-points )
243
+
244
+ qa-math.md:问题 (http://stackoverflow.com/questions/432842/how-do-you-get-the-logical-xor-of-two-variables-in-python )
245
+
246
+ qa-math.md:问题 (http://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n-in-python )
247
+
248
+ qa-math.md:问题 (http://stackoverflow.com/questions/1485841/behaviour-of-increment-and-decrement-operators-in-python )
249
+
260
250
qa-modules.md:问题 (http://stackoverflow.com/questions/448271/what-is-init-py-for )
261
251
262
252
qa-modules.md:问题 (http://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path )
@@ -267,6 +257,14 @@ qa-modules.md:问题 (http://stackoverflow.com/questions/44834/can-someone-expla
267
257
268
258
qa-modules.md:问题 (http://stackoverflow.com/questions/437589/how-do-i-unload-reload-a-python-module )
269
259
260
+ qa-modules.md:问题 (http://stackoverflow.com/questions/36932/how-can-i-represent-an-enum-in-python )
261
+
262
+ qa-modules.md:问题 (http://stackoverflow.com/questions/419163/what-does-if-name-main-do )
263
+
264
+ qa-modules.md:问题 (http://stackoverflow.com/questions/279237/import-a-module-from-a-relative-path )
265
+
266
+ qa-modules.md:问题 (http://stackoverflow.com/questions/72852/how-to-do-relative-imports-in-python )
267
+
270
268
qa-oop.md:问题 (http://stackoverflow.com/questions/2709821/python-self-explained )
271
269
272
270
qa-oop.md:问题 (http://stackoverflow.com/questions/70528/why-are-pythons-private-methods-not-actually-private )
@@ -297,6 +295,20 @@ qa-oop.md:问题 (http://stackoverflow.com/questions/372042/difference-between-a
297
295
298
296
qa-oop.md:问题 (http://stackoverflow.com/questions/472000/python-slots )
299
297
298
+ qa-oop.md:问题 (http://stackoverflow.com/questions/54867/old-style-and-new-style-classes-in-python )
299
+
300
+ qa-oop.md:问题 (http://stackoverflow.com/questions/6618002/python-property-versus-getters-and-setters )
301
+
302
+ qa-oop.md:问题 (http://stackoverflow.com/questions/904036/chain-calling-parent-constructors-in-python )
303
+
304
+ qa-oop.md:问题 (http://stackoverflow.com/questions/1301346/the-meaning-of-a-single-and-a-double-underscore-before-an-object-name-in-python )
305
+
306
+ qa-oop.md:问题 (http://stackoverflow.com/questions/972/adding-a-method-to-an-existing-object )
307
+
308
+ qa-oop.md:问题 (http://stackoverflow.com/questions/100003/what-is-a-metaclass-in-python/6581949#6581949 )
309
+
310
+ qa-oop.md:问题 (http://stackoverflow.com/questions/1132941/least-astonishment-in-python-the-mutable-default-argument )
311
+
300
312
qa-others.md:问题 (http://stackoverflow.com/questions/170921/should-i-learn-python-2-before-3-or-start-directly-from-python-3 )
301
313
302
314
qa-others.md:问题 (http://stackoverflow.com/questions/1534210/use-different-python-version-with-virtualenv )
@@ -319,6 +331,14 @@ qa-others.md:问题 (http://stackoverflow.com/questions/89228/calling-an-externa
319
331
320
332
qa-others.md:问题 (http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python )
321
333
334
+ qa-others.md:问题 (http://stackoverflow.com/questions/261638/how-do-i-protect-python-code )
335
+
336
+ qa-others.md:问题 (http://stackoverflow.com/questions/191673/preferred-python-unit-testing-framework )
337
+
338
+ qa-others.md:问题 (http://stackoverflow.com/questions/61151/where-do-the-python-unit-tests-go )
339
+
340
+ qa-others.md:问题 (http://stackoverflow.com/questions/6344076/differences-between-distribute-distutils-setuptools-and-distutils2 )
341
+
322
342
qa-pip-easy_install.md:问题 (http://stackoverflow.com/questions/2720014/upgrading-all-packages-with-pip )
323
343
324
344
qa-pip-easy_install.md:问题 (http://stackoverflow.com/questions/1231688/how-do-i-remove-packages-installed-with-pythons-easy-install )
@@ -331,6 +351,8 @@ qa-pip-easy_install.md:问题 (http://stackoverflow.com/questions/739993/get-a-l
331
351
332
352
qa-pip-easy_install.md:问题 (http://stackoverflow.com/questions/3220404/why-use-pip-over-easy-install )
333
353
354
+ qa-pip-easy_install.md:问题 (http://stackoverflow.com/questions/4324558/whats-the-proper-way-to-install-pip-virtualenv-and-distribute-for-python )
355
+
334
356
qa-std-modules.md:问题 (http://stackoverflow.com/questions/712791/json-and-simplejson-module-differences-in-python )
335
357
336
358
qa-std-modules.md:问题 (http://stackoverflow.com/questions/22676/how-do-i-download-a-file-over-http-using-python )
@@ -347,6 +369,12 @@ qa-std-modules.md:问题 (http://stackoverflow.com/questions/2018026/should-i-us
347
369
348
370
qa-std-modules.md:问题 (http://stackoverflow.com/questions/192109/is-there-a-function-in-python-to-print-all-the-current-properties-and-values-of )
349
371
372
+ qa-std-modules.md:问题 (http://stackoverflow.com/questions/132058/showing-the-stack-trace-from-a-running-python-application )
373
+
374
+ qa-std-modules.md:问题 (http://stackoverflow.com/questions/1549801/differences-between-isinstance-and-type-in-python )
375
+
376
+ qa-std-modules.md:问题 (http://stackoverflow.com/questions/323972/is-there-any-way-to-kill-a-thread-in-python )
377
+
350
378
qa-string.md:问题 (http://stackoverflow.com/questions/493819/python-join-why-is-it-string-joinlist-instead-of-list-joinstring )
351
379
352
380
qa-string.md:问题 (http://stackoverflow.com/questions/6797984/how-to-convert-string-to-lowercase-in-python )
@@ -390,6 +418,8 @@ more [link](https://github.com/wklken/stackoverflow-py-top-qa/graphs/contributor
390
418
391
419
You can Buy me a coffee:) [ link] ( http://www.wklken.me/pages/donation.html )
392
420
421
+
422
+
393
423
------
394
424
395
425
0 commit comments