開発環境
- macOS High Sierra - Apple
- Emacs (Text Editor)
- Python 3.6 (プログラミング言語)
入門 Python 3 (Bill Lubanovic (著)、斎藤 康毅 (監修)、長尾 高弘 (翻訳)、オライリージャパン)の2章(Pyの成分: 数値、文字列、変数)、2.4(復習問題)2-1、2、3、4、5、6.を取り組んでみる。
入出力結果(Terminal, Jupyter(IPython))
$ ipython Python 3.6.6 (default, Jun 28 2018, 05:43:53) Type 'copyright', 'credits' or 'license' for more information IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: 60 * 60 Out[1]: 3600 In [2]: seconds_per_hour = _ In [3]: seconds_per_hour * 24 Out[3]: 86400 In [4]: seconds_per_day = seconds_per_hour * 24 In [5]: seconds_per_day / seconds_per_hour Out[5]: 24.0 In [6]: seconds_per_day // seconds_per_hour Out[6]: 24 In [7]: quit() $
0 コメント:
コメントを投稿