0
What’s the difference between “float” and “str”?
I can’t understand English.What is them?
4 Answers
+ 2
Combine with Python チュートリアル
English -> 検索中 -> Japanese (upper left) 😉
+ 2
3.1.2. 文字列型 (string)
https://docs.python.org/ja/3.7/tutorial/introduction.html#strings
3.1.1. 数
https://docs.python.org/ja/3.7/tutorial/introduction.html#numbers
整数 (例えば、 2 、 4 、 20) は int 型であり、小数部を持つ数 (例えば、 5.0 、 1.6) は float 型です。数値型については後のチュートリアルでさらに見ていきます。
除算 (/) は常に浮動小数点数を返します。
Python チュートリアル
https://docs.python.org/ja/3.7/tutorial/index.html
+ 1
+goldin
丁寧なご回答ありがとうございました。
おかげで理解できました。
+ 1
☺️ありがとうございます!
日本語探してました。