2016-09-03 Python2*3(six)での違い(printの改行) ソフトウェア開発 Pythonの版数が、2から3になったことに伴いprint文の位置づけが、ステートメントから関数に変わっている。このためか改行の方法も、変わっている。 版数違いの互換性を確保するためには、sixを使って動くように直す必要がある。 Six: Python 2 and 3 Compatibility Library — six 1.10.0 documentation 6. Simple statements — Python 2.7.16 documentation What’s New In Python 3.0 — Python 3.7.3 documentation