官术网_书友最值得收藏!

How to do it...

  1. A number of options are available for the Python command-line call. To enter interactive mode, call Python with no additional options:
      $ python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:02:49)
[GCC 7.2.0] on linux

Type "help", "copyright", "credits" or "license" for
more information.

>>>
  1. To execute a regular Python program with no special options, add the program name:
      $ python <script>.py
  1. To execute a series of Python commands without entering interactive mode or calling a file, use -c:
      $ python -c "print('Hello World')"
  1. To call a Python module as a standalone program, use -m:
      $ python -m random
  1. Discussion of the other possible options is provided in the following section.
主站蜘蛛池模板: 资源县| 息烽县| 石家庄市| 焦作市| 光山县| 青冈县| 西乌珠穆沁旗| 昌都县| 佛坪县| 台中市| 宝兴县| 山东省| 厦门市| 满城县| 韩城市| 郯城县| 阿合奇县| 上栗县| 云霄县| 新绛县| 隆昌县| 泰州市| 卓尼县| 东山县| 宝丰县| 独山县| 高陵县| 临泉县| 平凉市| 清流县| 邵阳市| 延边| 霍州市| 尼木县| 达拉特旗| 五华县| 新津县| 易门县| 肃南| 柯坪县| 大城县|