tokyoquantopian / quantopian-doc-ja

Creative Commons Attribution 4.0 International
8 stars 1 forks source link

Python2の解説になっている箇所 #80

Open drillan opened 3 years ago

drillan commented 3 years ago

https://www.quantopian.com/lectures/introduction-to-python Make sure that your variables are floats if you want to have decimal points in your answer. If you perform math exclusively with integers, you get an integer. Including any float in the calculation will make the result a float.

Python2の挙動を解説しており、現在の環境(Python3.5)に当てはめると誤った情報となってしまう 訳注で注釈を入れる?

drillan commented 3 years ago

We can also use built-in functions to generate lists. In particular we will look at range() (because we will be using it later!). Range can take several different inputs and will return a list.

これもPython2の情報

shinseitaro commented 3 years ago

翻訳作業で python2 で書かれているコードは python3 に書き直しながら書いているので、 python2の挙動解説も、python3の解説に書き直してよいと思います。

ひとこと、「原作はpython2で説明されていますが、Quantopianでも現在は Python3を使っているので翻訳ではPython3で書いています」といったことを添えておくといいと思います。いかがでしょう。

shinseitaro commented 3 years ago
shinseitaro commented 3 years ago

トップページに python 3で書いていることを明記 @shinseitaro