好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

python - helloworld

# -*- coding:utf-8 -*-


print("helloworld") # 打印helloworld

# print "helloworld" # python2写法

 

说明:

print()为python内置函数,功能为输出内容

 

# -*- coding:utf-8 -*- :

这段代码用于指定python解析器编码格式为:utf-8,通常用于python2解析代码所使用,python3默认使用utf-8编码

查看更多关于python - helloworld的详细内容...

  阅读:15次