From 1adab9bc3f80d82123987ff34083568030735db7 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Wed, 12 Feb 2020 04:49:56 +0100 Subject: [PATCH 1/7] Rename Python 2 markdown files into 'pythonlegacy' ``` for f in $(find . -iname "*python*" | grep -vE 'python3|git|statcomp'); do flegacy=$(echo "$f" | sed 's/python/pythonlegacy/') git mv "$f" "$flegacy" done ``` --- de-de/{python-de.html.markdown => pythonlegacy-de.html.markdown} | 0 es-es/{python-es.html.markdown => pythonlegacy-es.html.markdown} | 0 fr-fr/{python-fr.html.markdown => pythonlegacy-fr.html.markdown} | 0 hu-hu/{python-hu.html.markdown => pythonlegacy-hu.html.markdown} | 0 it-it/{python-it.html.markdown => pythonlegacy-it.html.markdown} | 0 ko-kr/{python-kr.html.markdown => pythonlegacy-kr.html.markdown} | 0 pl-pl/{python-pl.html.markdown => pythonlegacy-pl.html.markdown} | 0 pt-br/{python-pt.html.markdown => pythonlegacy-pt.html.markdown} | 0 python.html.markdown => pythonlegacy.html.markdown | 0 ro-ro/{python-ro.html.markdown => pythonlegacy-ro.html.markdown} | 0 ru-ru/{python-ru.html.markdown => pythonlegacy-ru.html.markdown} | 0 tr-tr/{python-tr.html.markdown => pythonlegacy-tr.html.markdown} | 0 uk-ua/{python-ua.html.markdown => pythonlegacy-ua.html.markdown} | 0 zh-cn/{python-cn.html.markdown => pythonlegacy-cn.html.markdown} | 0 zh-tw/{python-tw.html.markdown => pythonlegacy-tw.html.markdown} | 0 15 files changed, 0 insertions(+), 0 deletions(-) rename de-de/{python-de.html.markdown => pythonlegacy-de.html.markdown} (100%) rename es-es/{python-es.html.markdown => pythonlegacy-es.html.markdown} (100%) rename fr-fr/{python-fr.html.markdown => pythonlegacy-fr.html.markdown} (100%) rename hu-hu/{python-hu.html.markdown => pythonlegacy-hu.html.markdown} (100%) rename it-it/{python-it.html.markdown => pythonlegacy-it.html.markdown} (100%) rename ko-kr/{python-kr.html.markdown => pythonlegacy-kr.html.markdown} (100%) rename pl-pl/{python-pl.html.markdown => pythonlegacy-pl.html.markdown} (100%) rename pt-br/{python-pt.html.markdown => pythonlegacy-pt.html.markdown} (100%) rename python.html.markdown => pythonlegacy.html.markdown (100%) rename ro-ro/{python-ro.html.markdown => pythonlegacy-ro.html.markdown} (100%) rename ru-ru/{python-ru.html.markdown => pythonlegacy-ru.html.markdown} (100%) rename tr-tr/{python-tr.html.markdown => pythonlegacy-tr.html.markdown} (100%) rename uk-ua/{python-ua.html.markdown => pythonlegacy-ua.html.markdown} (100%) rename zh-cn/{python-cn.html.markdown => pythonlegacy-cn.html.markdown} (100%) rename zh-tw/{python-tw.html.markdown => pythonlegacy-tw.html.markdown} (100%) diff --git a/de-de/python-de.html.markdown b/de-de/pythonlegacy-de.html.markdown similarity index 100% rename from de-de/python-de.html.markdown rename to de-de/pythonlegacy-de.html.markdown diff --git a/es-es/python-es.html.markdown b/es-es/pythonlegacy-es.html.markdown similarity index 100% rename from es-es/python-es.html.markdown rename to es-es/pythonlegacy-es.html.markdown diff --git a/fr-fr/python-fr.html.markdown b/fr-fr/pythonlegacy-fr.html.markdown similarity index 100% rename from fr-fr/python-fr.html.markdown rename to fr-fr/pythonlegacy-fr.html.markdown diff --git a/hu-hu/python-hu.html.markdown b/hu-hu/pythonlegacy-hu.html.markdown similarity index 100% rename from hu-hu/python-hu.html.markdown rename to hu-hu/pythonlegacy-hu.html.markdown diff --git a/it-it/python-it.html.markdown b/it-it/pythonlegacy-it.html.markdown similarity index 100% rename from it-it/python-it.html.markdown rename to it-it/pythonlegacy-it.html.markdown diff --git a/ko-kr/python-kr.html.markdown b/ko-kr/pythonlegacy-kr.html.markdown similarity index 100% rename from ko-kr/python-kr.html.markdown rename to ko-kr/pythonlegacy-kr.html.markdown diff --git a/pl-pl/python-pl.html.markdown b/pl-pl/pythonlegacy-pl.html.markdown similarity index 100% rename from pl-pl/python-pl.html.markdown rename to pl-pl/pythonlegacy-pl.html.markdown diff --git a/pt-br/python-pt.html.markdown b/pt-br/pythonlegacy-pt.html.markdown similarity index 100% rename from pt-br/python-pt.html.markdown rename to pt-br/pythonlegacy-pt.html.markdown diff --git a/python.html.markdown b/pythonlegacy.html.markdown similarity index 100% rename from python.html.markdown rename to pythonlegacy.html.markdown diff --git a/ro-ro/python-ro.html.markdown b/ro-ro/pythonlegacy-ro.html.markdown similarity index 100% rename from ro-ro/python-ro.html.markdown rename to ro-ro/pythonlegacy-ro.html.markdown diff --git a/ru-ru/python-ru.html.markdown b/ru-ru/pythonlegacy-ru.html.markdown similarity index 100% rename from ru-ru/python-ru.html.markdown rename to ru-ru/pythonlegacy-ru.html.markdown diff --git a/tr-tr/python-tr.html.markdown b/tr-tr/pythonlegacy-tr.html.markdown similarity index 100% rename from tr-tr/python-tr.html.markdown rename to tr-tr/pythonlegacy-tr.html.markdown diff --git a/uk-ua/python-ua.html.markdown b/uk-ua/pythonlegacy-ua.html.markdown similarity index 100% rename from uk-ua/python-ua.html.markdown rename to uk-ua/pythonlegacy-ua.html.markdown diff --git a/zh-cn/python-cn.html.markdown b/zh-cn/pythonlegacy-cn.html.markdown similarity index 100% rename from zh-cn/python-cn.html.markdown rename to zh-cn/pythonlegacy-cn.html.markdown diff --git a/zh-tw/python-tw.html.markdown b/zh-tw/pythonlegacy-tw.html.markdown similarity index 100% rename from zh-tw/python-tw.html.markdown rename to zh-tw/pythonlegacy-tw.html.markdown From a3b0585374d69e392fdb724bde30bc4048358d31 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Wed, 12 Feb 2020 04:54:36 +0100 Subject: [PATCH 2/7] Rename Python 3 markdown files into 'python' ``` for f in $(find . -iname "*python3*" | grep -vE 'git'); do fnew=$(echo "$f" | sed 's/python3/python/') git mv "$f" "$fnew" done --- ar-ar/{python3-ar.html.markdown => python-ar.html.markdown} | 0 cs-cz/{python3.html.markdown => python.html.markdown} | 0 de-de/{python3-de.html.markdown => python-de.html.markdown} | 0 el-gr/{python3-gr.html.markdown => python-gr.html.markdown} | 0 es-es/{python3-es.html.markdown => python-es.html.markdown} | 0 fr-fr/{python3-fr.html.markdown => python-fr.html.markdown} | 0 it-it/{python3-it.html.markdown => python-it.html.markdown} | 0 ja-jp/{python3-jp.html.markdown => python-jp.html.markdown} | 0 pt-br/{python3-pt.html.markdown => python-pt.html.markdown} | 0 python3.html.markdown => python.html.markdown | 0 ru-ru/{python3-ru.html.markdown => python-ru.html.markdown} | 0 tr-tr/{python3-tr.html.markdown => python-tr.html.markdown} | 0 vi-vn/{python3-vi.html.markdown => python-vi.html.markdown} | 0 zh-cn/{python3-cn.html.markdown => python-cn.html.markdown} | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename ar-ar/{python3-ar.html.markdown => python-ar.html.markdown} (100%) rename cs-cz/{python3.html.markdown => python.html.markdown} (100%) rename de-de/{python3-de.html.markdown => python-de.html.markdown} (100%) rename el-gr/{python3-gr.html.markdown => python-gr.html.markdown} (100%) rename es-es/{python3-es.html.markdown => python-es.html.markdown} (100%) rename fr-fr/{python3-fr.html.markdown => python-fr.html.markdown} (100%) rename it-it/{python3-it.html.markdown => python-it.html.markdown} (100%) rename ja-jp/{python3-jp.html.markdown => python-jp.html.markdown} (100%) rename pt-br/{python3-pt.html.markdown => python-pt.html.markdown} (100%) rename python3.html.markdown => python.html.markdown (100%) rename ru-ru/{python3-ru.html.markdown => python-ru.html.markdown} (100%) rename tr-tr/{python3-tr.html.markdown => python-tr.html.markdown} (100%) rename vi-vn/{python3-vi.html.markdown => python-vi.html.markdown} (100%) rename zh-cn/{python3-cn.html.markdown => python-cn.html.markdown} (100%) diff --git a/ar-ar/python3-ar.html.markdown b/ar-ar/python-ar.html.markdown similarity index 100% rename from ar-ar/python3-ar.html.markdown rename to ar-ar/python-ar.html.markdown diff --git a/cs-cz/python3.html.markdown b/cs-cz/python.html.markdown similarity index 100% rename from cs-cz/python3.html.markdown rename to cs-cz/python.html.markdown diff --git a/de-de/python3-de.html.markdown b/de-de/python-de.html.markdown similarity index 100% rename from de-de/python3-de.html.markdown rename to de-de/python-de.html.markdown diff --git a/el-gr/python3-gr.html.markdown b/el-gr/python-gr.html.markdown similarity index 100% rename from el-gr/python3-gr.html.markdown rename to el-gr/python-gr.html.markdown diff --git a/es-es/python3-es.html.markdown b/es-es/python-es.html.markdown similarity index 100% rename from es-es/python3-es.html.markdown rename to es-es/python-es.html.markdown diff --git a/fr-fr/python3-fr.html.markdown b/fr-fr/python-fr.html.markdown similarity index 100% rename from fr-fr/python3-fr.html.markdown rename to fr-fr/python-fr.html.markdown diff --git a/it-it/python3-it.html.markdown b/it-it/python-it.html.markdown similarity index 100% rename from it-it/python3-it.html.markdown rename to it-it/python-it.html.markdown diff --git a/ja-jp/python3-jp.html.markdown b/ja-jp/python-jp.html.markdown similarity index 100% rename from ja-jp/python3-jp.html.markdown rename to ja-jp/python-jp.html.markdown diff --git a/pt-br/python3-pt.html.markdown b/pt-br/python-pt.html.markdown similarity index 100% rename from pt-br/python3-pt.html.markdown rename to pt-br/python-pt.html.markdown diff --git a/python3.html.markdown b/python.html.markdown similarity index 100% rename from python3.html.markdown rename to python.html.markdown diff --git a/ru-ru/python3-ru.html.markdown b/ru-ru/python-ru.html.markdown similarity index 100% rename from ru-ru/python3-ru.html.markdown rename to ru-ru/python-ru.html.markdown diff --git a/tr-tr/python3-tr.html.markdown b/tr-tr/python-tr.html.markdown similarity index 100% rename from tr-tr/python3-tr.html.markdown rename to tr-tr/python-tr.html.markdown diff --git a/vi-vn/python3-vi.html.markdown b/vi-vn/python-vi.html.markdown similarity index 100% rename from vi-vn/python3-vi.html.markdown rename to vi-vn/python-vi.html.markdown diff --git a/zh-cn/python3-cn.html.markdown b/zh-cn/python-cn.html.markdown similarity index 100% rename from zh-cn/python3-cn.html.markdown rename to zh-cn/python-cn.html.markdown From efe00fd06e2908f547ed8d47bd818301f96c4620 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Wed, 12 Feb 2020 05:03:08 +0100 Subject: [PATCH 3/7] Switch links: 'python3 <-> python' and 'python <-> pythonlegacy' The list of references is exhausted by running 'ack docs/python'. --- ar-ar/python-ar.html.markdown | 2 +- cs-cz/python.html.markdown | 2 +- de-de/python-de.html.markdown | 2 +- el-gr/python-gr.html.markdown | 2 +- hu-hu/pythonlegacy-hu.html.markdown | 2 +- it-it/pythonlegacy-it.html.markdown | 2 +- ja-jp/python-jp.html.markdown | 2 +- python.html.markdown | 2 +- pythonlegacy.html.markdown | 2 +- tr-tr/python-tr.html.markdown | 2 +- vi-vn/python-vi.html.markdown | 2 +- zh-cn/python-cn.html.markdown | 2 +- zh-tw/pythonlegacy-tw.html.markdown | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ar-ar/python-ar.html.markdown b/ar-ar/python-ar.html.markdown index e1a12690..1b75b596 100644 --- a/ar-ar/python-ar.html.markdown +++ b/ar-ar/python-ar.html.markdown @@ -19,7 +19,7 @@ filename: learnpython3-ar.py ردود أفعالكم عن المقال مُقدرة بشدة. يمكنكم التواصل مع الكاتب الاساسي من خلال [@louiedinh](http://twitter.com/louiedinh) أو louiedinh [at] [google's email service] -ملحوظة: هذا المقال يُطبق على بايثون 3 فقط. راجع المقال [هنا](http://learnxinyminutes.com/docs/python/) إذا أردت تعلم لغة البايثون نسخة 2.7 الأقدم +ملحوظة: هذا المقال يُطبق على بايثون 3 فقط. راجع المقال [هنا](http://learnxinyminutes.com/docs/pythonlegacy/) إذا أردت تعلم لغة البايثون نسخة 2.7 الأقدم ```python diff --git a/cs-cz/python.html.markdown b/cs-cz/python.html.markdown index bd3690a8..7086ec5f 100644 --- a/cs-cz/python.html.markdown +++ b/cs-cz/python.html.markdown @@ -17,7 +17,7 @@ Zamiloval jsem si Python pro jeho syntaktickou čistotu - je to vlastně spustit Vaše zpětná vazba je vítána! Můžete mě zastihnout na [@louiedinh](http://twitter.com/louiedinh) nebo louiedinh [at] [email od googlu] anglicky, autora českého překladu pak na [@tbedrich](http://twitter.com/tbedrich) nebo ja [at] tbedrich.cz -Poznámka: Tento článek je zaměřen na Python 3. Zde se můžete [naučit starší Python 2.7](http://learnxinyminutes.com/docs/python/). +Poznámka: Tento článek je zaměřen na Python 3. Zde se můžete [naučit starší Python 2.7](http://learnxinyminutes.com/docs/pythonlegacy/). ```python diff --git a/de-de/python-de.html.markdown b/de-de/python-de.html.markdown index 4ef997a1..2c1e9ae0 100644 --- a/de-de/python-de.html.markdown +++ b/de-de/python-de.html.markdown @@ -14,7 +14,7 @@ Python wurde in den frühen Neunzigern von Guido van Rossum entworfen. Es ist he Feedback ist herzlich willkommen! Ihr erreicht mich unter [@louiedinh](http://twitter.com/louiedinh) oder louiedinh [at] [google's email service]. -Hinweis: Dieser Beitrag bezieht sich implizit auf Python 3. Falls du lieber Python 2.7 lernen möchtest, schau [hier](http://learnxinyminutes.com/docs/python/) weiter. +Hinweis: Dieser Beitrag bezieht sich implizit auf Python 3. Falls du lieber Python 2.7 lernen möchtest, schau [hier](http://learnxinyminutes.com/docs/pythonlegacy/) weiter. ```python diff --git a/el-gr/python-gr.html.markdown b/el-gr/python-gr.html.markdown index 445b85ba..2ae9cc75 100644 --- a/el-gr/python-gr.html.markdown +++ b/el-gr/python-gr.html.markdown @@ -20,7 +20,7 @@ lang: el-gr ή τον αρχικό συγγραφέα στο [@louiedinh](http://twitter.com/louiedinh) ή στο louiedinh [at] [google's email service] -Σημείωση: Το παρόν άρθρο ασχολείται μόνο με την Python 3. Δείτε [εδώ](http://learnxinyminutes.com/docs/python/) αν θέλετε να μάθετε την παλιά Python 2.7 +Σημείωση: Το παρόν άρθρο ασχολείται μόνο με την Python 3. Δείτε [εδώ](http://learnxinyminutes.com/docs/pythonlegacy/) αν θέλετε να μάθετε την παλιά Python 2.7 ```python diff --git a/hu-hu/pythonlegacy-hu.html.markdown b/hu-hu/pythonlegacy-hu.html.markdown index 01f1c414..ff2a3b3b 100644 --- a/hu-hu/pythonlegacy-hu.html.markdown +++ b/hu-hu/pythonlegacy-hu.html.markdown @@ -23,7 +23,7 @@ vagy pedig a louiedinh [kukac] [google email szolgáltatása] címen. Figyelem: ez a leírás a Python 2.7 verziójára vonatkozok, illetve általánosságban a 2.x verziókra. A Python 2.7 azonban már csak 2020-ig lesz támogatva, ezért kezdőknek ajánlott, hogy a Python 3-mal kezdjék az -ismerkedést. A Python 3.x verzióihoz a [Python 3 bemutató](http://learnxinyminutes.com/docs/python3/) +ismerkedést. A Python 3.x verzióihoz a [Python 3 bemutató](http://learnxinyminutes.com/docs/python/) ajánlott. Lehetséges olyan Python kódot írni, ami egyszerre kompatibilis a 2.7 és a 3.x diff --git a/it-it/pythonlegacy-it.html.markdown b/it-it/pythonlegacy-it.html.markdown index 794e7a70..0a8147b3 100644 --- a/it-it/pythonlegacy-it.html.markdown +++ b/it-it/pythonlegacy-it.html.markdown @@ -20,7 +20,7 @@ Feedback sono altamente apprezzati! Potete contattarmi su [@louiedinh](http://tw Nota: questo articolo è riferito a Python 2.7 in modo specifico, ma dovrebbe andar bene anche per Python 2.x. Python 2.7 sta raggiungendo il "fine vita", ovvero non sarà più supportato nel 2020. Quindi è consigliato imparare Python utilizzando Python 3. -Per maggiori informazioni su Python 3.x, dai un'occhiata al [tutorial di Python 3](http://learnxinyminutes.com/docs/python3/). +Per maggiori informazioni su Python 3.x, dai un'occhiata al [tutorial di Python 3](http://learnxinyminutes.com/docs/python/). E' possibile anche scrivere codice compatibile sia con Python 2.7 che con Python 3.x, utilizzando [il modulo `__future__`](https://docs.python.org/2/library/__future__.html) di Python. diff --git a/ja-jp/python-jp.html.markdown b/ja-jp/python-jp.html.markdown index b9731411..3e01bfcd 100644 --- a/ja-jp/python-jp.html.markdown +++ b/ja-jp/python-jp.html.markdown @@ -21,7 +21,7 @@ lang: ja-jp フィードバッグは大歓迎です! [@louiedinh](http://twitter.com/louiedinh) または louiedinh [at] [google's email service] にご連絡下さい! -Note: この記事はPython 3に内容を絞っています。もし古いPython 2.7を学習したいなら、 [こちら](http://learnxinyminutes.com/docs/python/) をご確認下さい。 +Note: この記事はPython 3に内容を絞っています。もし古いPython 2.7を学習したいなら、 [こちら](http://learnxinyminutes.com/docs/pythonlegacy/) をご確認下さい。 ```python # 1行のコメントは番号記号(#)から始まります。 diff --git a/python.html.markdown b/python.html.markdown index f69ffb14..aac04469 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -16,7 +16,7 @@ Python was created by Guido van Rossum in the early 90s. It is now one of the mo languages in existence. I fell in love with Python for its syntactic clarity. It's basically executable pseudocode. -Note: This article applies to Python 3 specifically. Check out [here](http://learnxinyminutes.com/docs/python/) if you want to learn the old Python 2.7 +Note: This article applies to Python 3 specifically. Check out [here](http://learnxinyminutes.com/docs/pythonlegacy/) if you want to learn the old Python 2.7 ```python diff --git a/pythonlegacy.html.markdown b/pythonlegacy.html.markdown index 0cc33a80..61b19105 100644 --- a/pythonlegacy.html.markdown +++ b/pythonlegacy.html.markdown @@ -21,7 +21,7 @@ or louiedinh [at] [google's email service] Note: This article applies to Python 2.7 specifically, but should be applicable to Python 2.x. Python 2.7 is reaching end of life and will stop being maintained in 2020, it is though recommended to start learning Python with -Python 3. For Python 3.x, take a look at the [Python 3 tutorial](http://learnxinyminutes.com/docs/python3/). +Python 3. For Python 3.x, take a look at the [Python 3 tutorial](http://learnxinyminutes.com/docs/python/). It is also possible to write Python code which is compatible with Python 2.7 and 3.x at the same time, using Python [`__future__` imports](https://docs.python.org/2/library/__future__.html). `__future__` imports diff --git a/tr-tr/python-tr.html.markdown b/tr-tr/python-tr.html.markdown index b78d517f..bba3d3ac 100644 --- a/tr-tr/python-tr.html.markdown +++ b/tr-tr/python-tr.html.markdown @@ -13,7 +13,7 @@ filename: learnpython3-tr.py Python,90ların başlarında Guido Van Rossum tarafından oluşturulmuştur. En popüler olan dillerden biridir. Beni Python'a aşık eden sebep onun syntax beraklığı. Çok basit bir çalıştırılabilir söz koddur. -Not: Bu makale Python 3 içindir. Eğer Python 2.7 öğrenmek istiyorsanız [burayı](http://learnxinyminutes.com/docs/python/) kontrol edebilirsiniz. +Not: Bu makale Python 3 içindir. Eğer Python 2.7 öğrenmek istiyorsanız [burayı](http://learnxinyminutes.com/docs/pythonlegacy/) kontrol edebilirsiniz. ```python diff --git a/vi-vn/python-vi.html.markdown b/vi-vn/python-vi.html.markdown index f6cce1a3..8c373d53 100644 --- a/vi-vn/python-vi.html.markdown +++ b/vi-vn/python-vi.html.markdown @@ -19,7 +19,7 @@ như một loại mã giả (pseudocode) có thể thực thi được. Mọi phản hồi đều sẽ được tích cực ghi nhận! Bạn có thể liên lạc với tôi qua Twitter [@louiedinh](http://twitter.com/louiedinh) hoặc louiedinh [at] [google's email service] -Lưu ý: Bài viết này áp dụng riêng cho Python 3. Truy cập [vào đây](http://learnxinyminutes.com/docs/python/) nếu bạn muốn học phiên bản cũ Python 2.7 +Lưu ý: Bài viết này áp dụng riêng cho Python 3. Truy cập [vào đây](http://learnxinyminutes.com/docs/pythonlegacy/) nếu bạn muốn học phiên bản cũ Python 2.7 ```python diff --git a/zh-cn/python-cn.html.markdown b/zh-cn/python-cn.html.markdown index fd962305..0e11e12f 100644 --- a/zh-cn/python-cn.html.markdown +++ b/zh-cn/python-cn.html.markdown @@ -16,7 +16,7 @@ Python 是由吉多·范罗苏姆(Guido Van Rossum)在 90 年代早期设计。 欢迎大家斧正。英文版原作 Louie Dinh [@louiedinh](http://twitter.com/louiedinh) 邮箱 louiedinh [at] [谷歌的信箱服务]。中文翻译 Geoff Liu。 -注意:这篇教程是基于 Python 3 写的。如果你想学旧版 Python 2,我们特别有[另一篇教程](http://learnxinyminutes.com/docs/python/)。 +注意:这篇教程是基于 Python 3 写的。如果你想学旧版 Python 2,我们特别有[另一篇教程](http://learnxinyminutes.com/docs/pythonlegacy/)。 ```python diff --git a/zh-tw/pythonlegacy-tw.html.markdown b/zh-tw/pythonlegacy-tw.html.markdown index cd7481d7..9b07a5ac 100644 --- a/zh-tw/pythonlegacy-tw.html.markdown +++ b/zh-tw/pythonlegacy-tw.html.markdown @@ -16,7 +16,7 @@ Python是在1990年代早期由Guido Van Rossum創建的。它是現在最流行 非常歡迎各位給我們任何回饋! 你可以在[@louiedinh](http://twitter.com/louiedinh) 或 louiedinh [at] [google's email service]聯絡到我。 註: 本篇文章適用的版本為Python 2.7,但大部分的Python 2.X版本應該都適用。 Python 2.7將會在2020年停止維護,因此建議您可以從Python 3開始學Python。 -Python 3.X可以看這篇[Python 3 教學 (英文)](http://learnxinyminutes.com/docs/python3/). +Python 3.X可以看這篇[Python 3 教學 (英文)](http://learnxinyminutes.com/docs/python/). 讓程式碼同時支援Python 2.7和3.X是可以做到的,只要引入 [`__future__` imports](https://docs.python.org/2/library/__future__.html) 模組. From 95c8b24ebf8b8e0ed02923787a9f793bdf295200 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Wed, 12 Feb 2020 05:09:13 +0100 Subject: [PATCH 4/7] Python 2 'language': Python 2 (legacy) Instead of listing 'language: python' for Python 2, use language: Python 2 (legacy) ``` find . -iname "*pythonlegacy*" -exec \ sed -i 's/^language: .*/language: Python 2 (legacy)/' {} \; ``` --- de-de/pythonlegacy-de.html.markdown | 2 +- es-es/pythonlegacy-es.html.markdown | 2 +- fr-fr/pythonlegacy-fr.html.markdown | 2 +- hu-hu/pythonlegacy-hu.html.markdown | 2 +- it-it/pythonlegacy-it.html.markdown | 2 +- ko-kr/pythonlegacy-kr.html.markdown | 2 +- pl-pl/pythonlegacy-pl.html.markdown | 2 +- pt-br/pythonlegacy-pt.html.markdown | 2 +- pythonlegacy.html.markdown | 2 +- ro-ro/pythonlegacy-ro.html.markdown | 2 +- ru-ru/pythonlegacy-ru.html.markdown | 2 +- tr-tr/pythonlegacy-tr.html.markdown | 2 +- uk-ua/pythonlegacy-ua.html.markdown | 2 +- zh-cn/pythonlegacy-cn.html.markdown | 2 +- zh-tw/pythonlegacy-tw.html.markdown | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/de-de/pythonlegacy-de.html.markdown b/de-de/pythonlegacy-de.html.markdown index ee77683e..3f8f9783 100644 --- a/de-de/pythonlegacy-de.html.markdown +++ b/de-de/pythonlegacy-de.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: diff --git a/es-es/pythonlegacy-es.html.markdown b/es-es/pythonlegacy-es.html.markdown index 2b8f498a..db16b9bd 100644 --- a/es-es/pythonlegacy-es.html.markdown +++ b/es-es/pythonlegacy-es.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: diff --git a/fr-fr/pythonlegacy-fr.html.markdown b/fr-fr/pythonlegacy-fr.html.markdown index 0ae410de..03868580 100644 --- a/fr-fr/pythonlegacy-fr.html.markdown +++ b/fr-fr/pythonlegacy-fr.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) filename: learnpython-fr.py contributors: - ["Louie Dinh", "http://ldinh.ca"] diff --git a/hu-hu/pythonlegacy-hu.html.markdown b/hu-hu/pythonlegacy-hu.html.markdown index ff2a3b3b..3becdf34 100644 --- a/hu-hu/pythonlegacy-hu.html.markdown +++ b/hu-hu/pythonlegacy-hu.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) contributors: - ["Louie Dinh", "http://ldinh.ca"] - ["Amin Bandali", "https://aminb.org"] diff --git a/it-it/pythonlegacy-it.html.markdown b/it-it/pythonlegacy-it.html.markdown index 0a8147b3..fec0c7b7 100644 --- a/it-it/pythonlegacy-it.html.markdown +++ b/it-it/pythonlegacy-it.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) filename: learnpython-it.py contributors: - ["Louie Dinh", "http://ldinh.ca"] diff --git a/ko-kr/pythonlegacy-kr.html.markdown b/ko-kr/pythonlegacy-kr.html.markdown index 0145754d..f09bce4e 100644 --- a/ko-kr/pythonlegacy-kr.html.markdown +++ b/ko-kr/pythonlegacy-kr.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) category: language contributors: - ["Louie Dinh", "http://ldinh.ca"] diff --git a/pl-pl/pythonlegacy-pl.html.markdown b/pl-pl/pythonlegacy-pl.html.markdown index 222f753f..e620fffb 100644 --- a/pl-pl/pythonlegacy-pl.html.markdown +++ b/pl-pl/pythonlegacy-pl.html.markdown @@ -1,7 +1,7 @@ --- name: python category: language -language: python +language: Python 2 (legacy) filename: learnpython-pl.py contributors: - ["Louie Dinh", "http://ldinh.ca"] diff --git a/pt-br/pythonlegacy-pt.html.markdown b/pt-br/pythonlegacy-pt.html.markdown index 82b70117..399c193a 100644 --- a/pt-br/pythonlegacy-pt.html.markdown +++ b/pt-br/pythonlegacy-pt.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: diff --git a/pythonlegacy.html.markdown b/pythonlegacy.html.markdown index 61b19105..25c22f78 100644 --- a/pythonlegacy.html.markdown +++ b/pythonlegacy.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) contributors: - ["Louie Dinh", "http://ldinh.ca"] - ["Amin Bandali", "https://aminb.org"] diff --git a/ro-ro/pythonlegacy-ro.html.markdown b/ro-ro/pythonlegacy-ro.html.markdown index ada0c034..2badef08 100644 --- a/ro-ro/pythonlegacy-ro.html.markdown +++ b/ro-ro/pythonlegacy-ro.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: diff --git a/ru-ru/pythonlegacy-ru.html.markdown b/ru-ru/pythonlegacy-ru.html.markdown index 6087a686..21220c4d 100644 --- a/ru-ru/pythonlegacy-ru.html.markdown +++ b/ru-ru/pythonlegacy-ru.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) lang: ru-ru contributors: - ["Louie Dinh", "http://ldinh.ca"] diff --git a/tr-tr/pythonlegacy-tr.html.markdown b/tr-tr/pythonlegacy-tr.html.markdown index 99a3eb4e..ce3c8cd7 100644 --- a/tr-tr/pythonlegacy-tr.html.markdown +++ b/tr-tr/pythonlegacy-tr.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) filename: learnpython-tr.py contributors: - ["Louie Dinh", "http://ldinh.ca"] diff --git a/uk-ua/pythonlegacy-ua.html.markdown b/uk-ua/pythonlegacy-ua.html.markdown index 4091e433..3244348c 100644 --- a/uk-ua/pythonlegacy-ua.html.markdown +++ b/uk-ua/pythonlegacy-ua.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) lang: uk-ua contributors: - ["Louie Dinh", "http://ldinh.ca"] diff --git a/zh-cn/pythonlegacy-cn.html.markdown b/zh-cn/pythonlegacy-cn.html.markdown index 65f125d1..98759857 100644 --- a/zh-cn/pythonlegacy-cn.html.markdown +++ b/zh-cn/pythonlegacy-cn.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: diff --git a/zh-tw/pythonlegacy-tw.html.markdown b/zh-tw/pythonlegacy-tw.html.markdown index 9b07a5ac..e094f3fd 100644 --- a/zh-tw/pythonlegacy-tw.html.markdown +++ b/zh-tw/pythonlegacy-tw.html.markdown @@ -1,5 +1,5 @@ --- -language: python +language: Python 2 (legacy) contributors: - ["Louie Dinh", "http://ldinh.ca"] - ["Amin Bandali", "http://aminbandali.com"] From 8f5fac98958098864b86e2a09d8131d6dafaaddd Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Wed, 12 Feb 2020 05:15:29 +0100 Subject: [PATCH 5/7] Python 3: 'language: Python' Instead of listing 'language: python3' for Python 3, use language: Python as #3450 does. ``` find . -iname "python-*.markdown" -exec \ sed -i 's/language: python3/language: Python/' {} \; ``` --- ar-ar/python-ar.html.markdown | 2 +- de-de/python-de.html.markdown | 2 +- el-gr/python-gr.html.markdown | 2 +- es-es/python-es.html.markdown | 2 +- fr-fr/python-fr.html.markdown | 2 +- it-it/python-it.html.markdown | 2 +- ja-jp/python-jp.html.markdown | 2 +- pt-br/python-pt.html.markdown | 2 +- ru-ru/python-ru.html.markdown | 2 +- tr-tr/python-tr.html.markdown | 2 +- vi-vn/python-vi.html.markdown | 2 +- zh-cn/python-cn.html.markdown | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ar-ar/python-ar.html.markdown b/ar-ar/python-ar.html.markdown index 1b75b596..8aa8dd37 100644 --- a/ar-ar/python-ar.html.markdown +++ b/ar-ar/python-ar.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] diff --git a/de-de/python-de.html.markdown b/de-de/python-de.html.markdown index 2c1e9ae0..28a705f2 100644 --- a/de-de/python-de.html.markdown +++ b/de-de/python-de.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: diff --git a/el-gr/python-gr.html.markdown b/el-gr/python-gr.html.markdown index 2ae9cc75..d81f4012 100644 --- a/el-gr/python-gr.html.markdown +++ b/el-gr/python-gr.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] diff --git a/es-es/python-es.html.markdown b/es-es/python-es.html.markdown index 3236e73a..aa74aaf8 100644 --- a/es-es/python-es.html.markdown +++ b/es-es/python-es.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] translators: diff --git a/fr-fr/python-fr.html.markdown b/fr-fr/python-fr.html.markdown index 7112cd90..3dbec414 100644 --- a/fr-fr/python-fr.html.markdown +++ b/fr-fr/python-fr.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] diff --git a/it-it/python-it.html.markdown b/it-it/python-it.html.markdown index 04f78cff..abd86184 100644 --- a/it-it/python-it.html.markdown +++ b/it-it/python-it.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python filename: learnpython3-it.py contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] diff --git a/ja-jp/python-jp.html.markdown b/ja-jp/python-jp.html.markdown index 3e01bfcd..1f212aee 100644 --- a/ja-jp/python-jp.html.markdown +++ b/ja-jp/python-jp.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] diff --git a/pt-br/python-pt.html.markdown b/pt-br/python-pt.html.markdown index bc5f801c..d3dfcb23 100644 --- a/pt-br/python-pt.html.markdown +++ b/pt-br/python-pt.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] diff --git a/ru-ru/python-ru.html.markdown b/ru-ru/python-ru.html.markdown index bf80fed2..179f339f 100644 --- a/ru-ru/python-ru.html.markdown +++ b/ru-ru/python-ru.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python lang: ru-ru contributors: - ["Louie Dinh", "http://ldinh.ca"] diff --git a/tr-tr/python-tr.html.markdown b/tr-tr/python-tr.html.markdown index bba3d3ac..a1007f34 100644 --- a/tr-tr/python-tr.html.markdown +++ b/tr-tr/python-tr.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] diff --git a/vi-vn/python-vi.html.markdown b/vi-vn/python-vi.html.markdown index 8c373d53..58154f35 100644 --- a/vi-vn/python-vi.html.markdown +++ b/vi-vn/python-vi.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python filename: learnpython3-vi.py contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] diff --git a/zh-cn/python-cn.html.markdown b/zh-cn/python-cn.html.markdown index 0e11e12f..e3804cf6 100644 --- a/zh-cn/python-cn.html.markdown +++ b/zh-cn/python-cn.html.markdown @@ -1,5 +1,5 @@ --- -language: python3 +language: Python contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] From 887cbee8af080034177734b528819491e73a7a16 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Wed, 12 Feb 2020 05:50:44 +0100 Subject: [PATCH 6/7] Change 'filename:' for Python 2 (legacy) Before renaming, all Python 2 filenames were 'learnpython-*.py'. This commit renames them to 'learnpythonlegacy-*.py'. To verify that the filenames were named consistently across translations prior to this commit, and to change this: ``` find . -name "pythonlegacy*.markdown" -exec ack filename: {} \; find . -name "pythonlegacy*.markdown" -exec \ sed -i 's/^filename: learnpython/filename: learnpythonlegacy/' {} \; ``` --- de-de/pythonlegacy-de.html.markdown | 2 +- es-es/pythonlegacy-es.html.markdown | 2 +- fr-fr/pythonlegacy-fr.html.markdown | 2 +- hu-hu/pythonlegacy-hu.html.markdown | 2 +- it-it/pythonlegacy-it.html.markdown | 2 +- ko-kr/pythonlegacy-kr.html.markdown | 2 +- pl-pl/pythonlegacy-pl.html.markdown | 2 +- pt-br/pythonlegacy-pt.html.markdown | 2 +- pythonlegacy.html.markdown | 2 +- ro-ro/pythonlegacy-ro.html.markdown | 2 +- ru-ru/pythonlegacy-ru.html.markdown | 2 +- tr-tr/pythonlegacy-tr.html.markdown | 2 +- uk-ua/pythonlegacy-ua.html.markdown | 2 +- zh-cn/pythonlegacy-cn.html.markdown | 2 +- zh-tw/pythonlegacy-tw.html.markdown | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/de-de/pythonlegacy-de.html.markdown b/de-de/pythonlegacy-de.html.markdown index 3f8f9783..d66a8551 100644 --- a/de-de/pythonlegacy-de.html.markdown +++ b/de-de/pythonlegacy-de.html.markdown @@ -4,7 +4,7 @@ contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: - ["kultprok", "http:/www.kulturproktologie.de"] -filename: learnpython-de.py +filename: learnpythonlegacy-de.py lang: de-de --- diff --git a/es-es/pythonlegacy-es.html.markdown b/es-es/pythonlegacy-es.html.markdown index db16b9bd..0a7304e9 100644 --- a/es-es/pythonlegacy-es.html.markdown +++ b/es-es/pythonlegacy-es.html.markdown @@ -6,7 +6,7 @@ translators: - ["Camilo Garrido", "http://www.twitter.com/hirohope"] - ["Fabio Souto", "http://fabiosouto.me"] lang: es-es -filename: learnpython-es.py +filename: learnpythonlegacy-es.py --- Python fue creado por Guido Van Rossum en el principio de los 90. Ahora es uno diff --git a/fr-fr/pythonlegacy-fr.html.markdown b/fr-fr/pythonlegacy-fr.html.markdown index 03868580..10b1a0a6 100644 --- a/fr-fr/pythonlegacy-fr.html.markdown +++ b/fr-fr/pythonlegacy-fr.html.markdown @@ -1,6 +1,6 @@ --- language: Python 2 (legacy) -filename: learnpython-fr.py +filename: learnpythonlegacy-fr.py contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: diff --git a/hu-hu/pythonlegacy-hu.html.markdown b/hu-hu/pythonlegacy-hu.html.markdown index 3becdf34..b5922766 100644 --- a/hu-hu/pythonlegacy-hu.html.markdown +++ b/hu-hu/pythonlegacy-hu.html.markdown @@ -9,7 +9,7 @@ contributors: - ["habi", "http://github.com/habi"] translators: - ["Tamás Diószegi", "https://github.com/ditam"] -filename: learnpython-hu.py +filename: learnpythonlegacy-hu.py lang: hu-hu --- diff --git a/it-it/pythonlegacy-it.html.markdown b/it-it/pythonlegacy-it.html.markdown index fec0c7b7..4c8b2a17 100644 --- a/it-it/pythonlegacy-it.html.markdown +++ b/it-it/pythonlegacy-it.html.markdown @@ -1,6 +1,6 @@ --- language: Python 2 (legacy) -filename: learnpython-it.py +filename: learnpythonlegacy-it.py contributors: - ["Louie Dinh", "http://ldinh.ca"] - ["Amin Bandali", "http://aminbandali.com"] diff --git a/ko-kr/pythonlegacy-kr.html.markdown b/ko-kr/pythonlegacy-kr.html.markdown index f09bce4e..978a9f33 100644 --- a/ko-kr/pythonlegacy-kr.html.markdown +++ b/ko-kr/pythonlegacy-kr.html.markdown @@ -3,7 +3,7 @@ language: Python 2 (legacy) category: language contributors: - ["Louie Dinh", "http://ldinh.ca"] -filename: learnpython-ko.py +filename: learnpythonlegacy-ko.py translators: - ["wikibook", "http://wikibook.co.kr"] lang: ko-kr diff --git a/pl-pl/pythonlegacy-pl.html.markdown b/pl-pl/pythonlegacy-pl.html.markdown index e620fffb..9e322658 100644 --- a/pl-pl/pythonlegacy-pl.html.markdown +++ b/pl-pl/pythonlegacy-pl.html.markdown @@ -2,7 +2,7 @@ name: python category: language language: Python 2 (legacy) -filename: learnpython-pl.py +filename: learnpythonlegacy-pl.py contributors: - ["Louie Dinh", "http://ldinh.ca"] - ["Amin Bandali", "http://aminbandali.com"] diff --git a/pt-br/pythonlegacy-pt.html.markdown b/pt-br/pythonlegacy-pt.html.markdown index 399c193a..572bb787 100644 --- a/pt-br/pythonlegacy-pt.html.markdown +++ b/pt-br/pythonlegacy-pt.html.markdown @@ -5,7 +5,7 @@ contributors: translators: - ["Vilson Vieira", "http://automata.cc"] lang: pt-br -filename: learnpython-pt.py +filename: learnpythonlegacy-pt.py --- Python foi criado por Guido Van Rossum no começo dos anos 90. Atualmente é uma diff --git a/pythonlegacy.html.markdown b/pythonlegacy.html.markdown index 25c22f78..95d6aa63 100644 --- a/pythonlegacy.html.markdown +++ b/pythonlegacy.html.markdown @@ -8,7 +8,7 @@ contributors: - ["asyne", "https://github.com/justblah"] - ["habi", "http://github.com/habi"] - ["Rommel Martinez", "https://ebzzry.io"] -filename: learnpython.py +filename: learnpythonlegacy.py --- Python was created by Guido Van Rossum in the early 90s. It is now one of the diff --git a/ro-ro/pythonlegacy-ro.html.markdown b/ro-ro/pythonlegacy-ro.html.markdown index 2badef08..a368ff99 100644 --- a/ro-ro/pythonlegacy-ro.html.markdown +++ b/ro-ro/pythonlegacy-ro.html.markdown @@ -4,7 +4,7 @@ contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: - ["Ovidiu Ciule", "https://github.com/ociule"] -filename: learnpython-ro.py +filename: learnpythonlegacy-ro.py lang: ro-ro --- diff --git a/ru-ru/pythonlegacy-ru.html.markdown b/ru-ru/pythonlegacy-ru.html.markdown index 21220c4d..ead2af3d 100644 --- a/ru-ru/pythonlegacy-ru.html.markdown +++ b/ru-ru/pythonlegacy-ru.html.markdown @@ -6,7 +6,7 @@ contributors: translators: - ["Yury Timofeev", "http://twitter.com/gagar1n"] - ["Andre Polykanine", "https://github.com/Oire"] -filename: learnpython-ru.py +filename: learnpythonlegacy-ru.py --- Язык Python был создан Гвидо ван Россумом в начале 90-х. Сейчас это один из diff --git a/tr-tr/pythonlegacy-tr.html.markdown b/tr-tr/pythonlegacy-tr.html.markdown index ce3c8cd7..cd757625 100644 --- a/tr-tr/pythonlegacy-tr.html.markdown +++ b/tr-tr/pythonlegacy-tr.html.markdown @@ -1,6 +1,6 @@ --- language: Python 2 (legacy) -filename: learnpython-tr.py +filename: learnpythonlegacy-tr.py contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: diff --git a/uk-ua/pythonlegacy-ua.html.markdown b/uk-ua/pythonlegacy-ua.html.markdown index 3244348c..e2a6d19e 100644 --- a/uk-ua/pythonlegacy-ua.html.markdown +++ b/uk-ua/pythonlegacy-ua.html.markdown @@ -10,7 +10,7 @@ contributors: - ["habi", "http://github.com/habi"] translators: - ["Oleh Hromiak", "https://github.com/ogroleg"] -filename: learnpython-ua.py +filename: learnpythonlegacy-ua.py --- Мову Python створив Гвідо ван Россум на початку 90-х. Наразі це одна з diff --git a/zh-cn/pythonlegacy-cn.html.markdown b/zh-cn/pythonlegacy-cn.html.markdown index 98759857..756081d6 100644 --- a/zh-cn/pythonlegacy-cn.html.markdown +++ b/zh-cn/pythonlegacy-cn.html.markdown @@ -4,7 +4,7 @@ contributors: - ["Louie Dinh", "http://ldinh.ca"] translators: - ["Chenbo Li", "http://binarythink.net"] -filename: learnpython-zh.py +filename: learnpythonlegacy-zh.py lang: zh-cn --- diff --git a/zh-tw/pythonlegacy-tw.html.markdown b/zh-tw/pythonlegacy-tw.html.markdown index e094f3fd..575897e2 100644 --- a/zh-tw/pythonlegacy-tw.html.markdown +++ b/zh-tw/pythonlegacy-tw.html.markdown @@ -7,7 +7,7 @@ contributors: - ["evuez", "http://github.com/evuez"] translators: - ["Michael Yeh", "https://hinet60613.github.io/"] -filename: learnpython-tw.py +filename: learnpythonlegacy-tw.py lang: zh-tw --- From ae848c481fabaca935ffbe33293a43a43434d268 Mon Sep 17 00:00:00 2001 From: Simon Shine Date: Wed, 12 Feb 2020 06:23:31 +0100 Subject: [PATCH 7/7] Python 3: Use 'filename: learnpython*.py' (no '3') Before renaming, Python 3 filenames were 'learnpython3*.py'. This commit removes the '3' part from the filename. To verify that the filenames were named consistently across translations prior to this commit, and to change this: ``` ack -H 'filename:' python.html.markdown find . -name "python-*.markdown" -exec ack -H 'filename:' {} \; sed -i 's/^filename: learnpython3/filename: learnpython/' \ python.html.markdown find . -name "python-*.markdown" -exec \ sed -i 's/^filename: learnpython3/filename: learnpython/' {} \; ``` --- ar-ar/python-ar.html.markdown | 2 +- de-de/python-de.html.markdown | 2 +- el-gr/python-gr.html.markdown | 2 +- es-es/python-es.html.markdown | 2 +- fr-fr/python-fr.html.markdown | 2 +- it-it/python-it.html.markdown | 2 +- ja-jp/python-jp.html.markdown | 2 +- pt-br/python-pt.html.markdown | 2 +- python.html.markdown | 2 +- ru-ru/python-ru.html.markdown | 2 +- tr-tr/python-tr.html.markdown | 2 +- vi-vn/python-vi.html.markdown | 2 +- zh-cn/python-cn.html.markdown | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ar-ar/python-ar.html.markdown b/ar-ar/python-ar.html.markdown index 8aa8dd37..f89c2f25 100644 --- a/ar-ar/python-ar.html.markdown +++ b/ar-ar/python-ar.html.markdown @@ -11,7 +11,7 @@ contributors: translators: - ["Ahmad Hegazy", "https://github.com/ahegazy"] lang: ar-ar -filename: learnpython3-ar.py +filename: learnpython-ar.py --- لقد أُنشئت لغة البايثون بواسطة جايدو ڤان روسم في بداية التسعينات. هي الأن أحد أشهر اللغات الموجودة. diff --git a/de-de/python-de.html.markdown b/de-de/python-de.html.markdown index 28a705f2..9eebff41 100644 --- a/de-de/python-de.html.markdown +++ b/de-de/python-de.html.markdown @@ -5,7 +5,7 @@ contributors: translators: - ["kultprok", "http:/www.kulturproktologie.de"] - ["matthiaskern", "https://github.com/matthiaskern"] -filename: learnpython3-de.py +filename: learnpython-de.py lang: de-de --- diff --git a/el-gr/python-gr.html.markdown b/el-gr/python-gr.html.markdown index d81f4012..203c6e78 100644 --- a/el-gr/python-gr.html.markdown +++ b/el-gr/python-gr.html.markdown @@ -8,7 +8,7 @@ contributors: - ["evuez", "http://github.com/evuez"] - ["Rommel Martinez", "https://ebzzry.io"] - ["Roberto Fernandez Diaz", "https://github.com/robertofd1995"] -filename: learnpython3-gr.py +filename: learnpython-gr.py lang: el-gr --- diff --git a/es-es/python-es.html.markdown b/es-es/python-es.html.markdown index aa74aaf8..7deec286 100644 --- a/es-es/python-es.html.markdown +++ b/es-es/python-es.html.markdown @@ -5,7 +5,7 @@ contributors: translators: - ["Camilo Garrido", "http://twitter.com/hirohope"] lang: es-es -filename: learnpython3-es.py +filename: learnpython-es.py --- Python fue creado por Guido Van Rossum en el principio de los 90'. Ahora es uno diff --git a/fr-fr/python-fr.html.markdown b/fr-fr/python-fr.html.markdown index 3dbec414..ca510d66 100644 --- a/fr-fr/python-fr.html.markdown +++ b/fr-fr/python-fr.html.markdown @@ -8,7 +8,7 @@ contributors: translators: - ["Gnomino", "https://github.com/Gnomino"] - ["Julien M'Poy", "http://github.com/groovytron"] -filename: learnpython3-fr.py +filename: learnpython-fr.py lang: fr-fr --- diff --git a/it-it/python-it.html.markdown b/it-it/python-it.html.markdown index abd86184..de7bb0ed 100644 --- a/it-it/python-it.html.markdown +++ b/it-it/python-it.html.markdown @@ -1,6 +1,6 @@ --- language: Python -filename: learnpython3-it.py +filename: learnpython-it.py contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] diff --git a/ja-jp/python-jp.html.markdown b/ja-jp/python-jp.html.markdown index 1f212aee..c80b4d4c 100644 --- a/ja-jp/python-jp.html.markdown +++ b/ja-jp/python-jp.html.markdown @@ -11,7 +11,7 @@ contributors: translators: - ["kakakaya", "https://github.com/kakakaya"] - ["Ryota Kayanuma", "https://github.com/PicoSushi"] -filename: learnpython3-jp.py +filename: learnpython-jp.py lang: ja-jp --- diff --git a/pt-br/python-pt.html.markdown b/pt-br/python-pt.html.markdown index d3dfcb23..3f9c54c1 100644 --- a/pt-br/python-pt.html.markdown +++ b/pt-br/python-pt.html.markdown @@ -9,7 +9,7 @@ translators: - ["Paulo Henrique Rodrigues Pinheiro", "http://www.sysincloud.it"] - ["Monique Baptista", "https://github.com/bfmonique"] lang: pt-br -filename: learnpython3-pt.py +filename: learnpython-pt.py --- Python foi criada por Guido Van Rossum nos anos 1990. Ela é atualmente uma diff --git a/python.html.markdown b/python.html.markdown index aac04469..2e1f8c90 100644 --- a/python.html.markdown +++ b/python.html.markdown @@ -9,7 +9,7 @@ contributors: - ["Rommel Martinez", "https://ebzzry.io"] - ["Roberto Fernandez Diaz", "https://github.com/robertofd1995"] - ["caminsha", "https://github.com/caminsha"] -filename: learnpython3.py +filename: learnpython.py --- Python was created by Guido van Rossum in the early 90s. It is now one of the most popular diff --git a/ru-ru/python-ru.html.markdown b/ru-ru/python-ru.html.markdown index 179f339f..b2c00baf 100644 --- a/ru-ru/python-ru.html.markdown +++ b/ru-ru/python-ru.html.markdown @@ -6,7 +6,7 @@ contributors: - ["Steven Basart", "http://github.com/xksteven"] translators: - ["Andre Polykanine", "https://github.com/Oire"] -filename: learnpython3-ru.py +filename: learnpython-ru.py --- Язык Python был создан Гвидо ван Россумом в начале 90-х. Сейчас это один из diff --git a/tr-tr/python-tr.html.markdown b/tr-tr/python-tr.html.markdown index a1007f34..6d9cdcbe 100644 --- a/tr-tr/python-tr.html.markdown +++ b/tr-tr/python-tr.html.markdown @@ -8,7 +8,7 @@ contributors: translators: - ["Eray AYDIN", "http://erayaydin.me/"] lang: tr-tr -filename: learnpython3-tr.py +filename: learnpython-tr.py --- Python,90ların başlarında Guido Van Rossum tarafından oluşturulmuştur. En popüler olan dillerden biridir. Beni Python'a aşık eden sebep onun syntax beraklığı. Çok basit bir çalıştırılabilir söz koddur. diff --git a/vi-vn/python-vi.html.markdown b/vi-vn/python-vi.html.markdown index 58154f35..89e51d5d 100644 --- a/vi-vn/python-vi.html.markdown +++ b/vi-vn/python-vi.html.markdown @@ -1,6 +1,6 @@ --- language: Python -filename: learnpython3-vi.py +filename: learnpython-vi.py contributors: - ["Louie Dinh", "http://pythonpracticeprojects.com"] - ["Steven Basart", "http://github.com/xksteven"] diff --git a/zh-cn/python-cn.html.markdown b/zh-cn/python-cn.html.markdown index e3804cf6..da13275b 100644 --- a/zh-cn/python-cn.html.markdown +++ b/zh-cn/python-cn.html.markdown @@ -6,7 +6,7 @@ contributors: - ["Andre Polykanine", "https://github.com/Oire"] translators: - ["Geoff Liu", "http://geoffliu.me"] -filename: learnpython3-cn.py +filename: learnpython-cn.py lang: zh-cn ---