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

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.
主站蜘蛛池模板: 甘肃省| 宽甸| 十堰市| 泸定县| 深水埗区| 临漳县| 西乌珠穆沁旗| 沅江市| 仙居县| 康定县| 淮北市| 苍溪县| 禄劝| 海口市| 石狮市| 迭部县| 台北市| 松阳县| 临朐县| 和静县| 苍溪县| 泾阳县| 清苑县| 日照市| 偃师市| 厦门市| 平度市| 龙泉市| 河曲县| 张北县| 筠连县| 昆山市| 横峰县| 珲春市| 通化市| 黄骅市| 澄江县| 翁源县| 江都市| 册亨县| 建阳市|