Python01:HelloWorld

Posted mclind

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python01:HelloWorld相关的知识,希望对你有一定的参考价值。

第一个python程序:HelloWorld.py

运行环境:win10、python3.5.X

#!/usr/bin/env python

# -*- coding:utf-8 -*-
#Author:Mclind

print ("hello, world!")

 

输出:

hello, world!

程序入门经典,不作解释。

 

程序注释:

  单行注释:#

  多行注释:’’’ ‘’’/”””  “””(三个单引或者双引号成对出现)




以上是关于Python01:HelloWorld的主要内容,如果未能解决你的问题,请参考以下文章