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

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.
主站蜘蛛池模板: 广饶县| 招远市| 贞丰县| 承德县| 泸水县| 金溪县| 通州区| 株洲市| 台南市| 临澧县| 南投县| 绥棱县| 长兴县| 通河县| 东光县| 吐鲁番市| 廊坊市| 同仁县| 永宁县| 三穗县| 宁南县| 阜康市| 扬中市| 且末县| 额敏县| 剑河县| 明溪县| 宿迁市| 宜都市| 秭归县| 东辽县| 托里县| 陆川县| 临湘市| 嘉荫县| 屏东市| 白银市| 葵青区| 沅陵县| 盘山县| 囊谦县|