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

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.
主站蜘蛛池模板: 辽阳市| 新平| 南平市| 和平县| 仙居县| 平顺县| 蓝田县| 闵行区| 兖州市| 共和县| 长泰县| 德保县| 福海县| 通城县| 墨江| 海安县| 祥云县| 资源县| 海盐县| 西峡县| 青神县| 民勤县| 乌鲁木齐县| 比如县| 金阳县| 当雄县| 万盛区| 拉孜县| 惠东县| 宜春市| 抚松县| 滦平县| 色达县| 鄄城县| 新余市| 潞城市| 尼勒克县| 科技| 尼木县| 驻马店市| 葫芦岛市|