0

What’s the difference between “float” and “str”?

I can’t understand English.What is them?

18th Apr 2019, 8:51 AM
TKG
TKG - avatar
4 Answers
+ 2
Combine with Python チュートリアル English -> 検索中 -> Japanese (upper left) 😉
18th Apr 2019, 9:08 AM
Gordon
Gordon - avatar
+ 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
18th Apr 2019, 9:04 AM
Gordon
Gordon - avatar
+ 1
+goldin 丁寧なご回答ありがとうございました。 おかげで理解できました。
18th Apr 2019, 9:05 AM
TKG
TKG - avatar
+ 1
☺️ありがとうございます! 日本語探してました。
18th Apr 2019, 9:10 AM
TKG
TKG - avatar