在Geany中编译Python时注释:
1.如果注释中含有中文,只需要在程序的开始位置添加 # coding:utf-8
如下
#coding:utf-8
chars=["a","b","c"]
for s in chars:
#print前需要加 tab 键 (此行为注释的话)
print(s)
2 如果注释中没有中文,开头可以不用添加 # coding:utf-8
在Geany中编译Python时注释:
1.如果注释中含有中文,只需要在程序的开始位置添加 # coding:utf-8
如下
#coding:utf-8
chars=["a","b","c"]
for s in chars:
#print前需要加 tab 键 (此行为注释的话)
print(s)
2 如果注释中没有中文,开头可以不用添加 # coding:utf-8