学习小结

2018-03-03  本文已影响0人  墨垣

如何运行Python

Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

这表示Python安装成功。可以在>>>后上输入Python代码了。

>>> print('hello,world')
hello,world
>>>

或者用文本文件编辑Python代码并保存为后缀名是.py的文件。

缩进

!python的缩进必须严格按照格式来进行缩进

上一篇 下一篇

猜你喜欢

热点阅读