发布时间:2017-11-03 10:48:18编辑:Run阅读(7196)
打开pycharm,创建一个test项目目录,所有的习题都将存放在这个目录下
点击File---New Project


创建一个ex1.py文件


创建完成后,test下面就会多一个ex1.py文件

将下面的内容写入ex1.py中
# coding : utf-8
print("Hello World")
print("Hello Sam")
print("I like typing this.")
print("This is fun.")
print("Yay! Printing.")
print("I'd much rather you 'not'.")
print("I 'said' do not touch this.")
第一行为注释,意思是字符编码为utf-8
运行程序,点击鼠标右键即可

Run和Debug都是可以的,应该看到的结果

上一篇: 没有了
下一篇: 习题2:注释和井号
51387
50862
41452
38239
32740
29643
28452
23363
23299
21628
1721°
2454°
2047°
1983°
2338°
2013°
2724°
4558°
4367°
3115°