# -*- coding:utf-8 -*- print("helloworld") # 打印helloworld # print "helloworld" # python2写法
说明:
print()为python内置函数,功能为输出内容
# -*- coding:utf-8 -*- :
这段代码用于指定python解析器编码格式为:utf-8,通常用于python2解析代码所使用,python3默认使用utf-8编码
查看更多关于python - helloworld的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did171617