Mac PyCharm新建Python项目
1.打开软件PyCharm,点击"+Create New project",如下图:
2.弹出如下窗口,把“untitled”更改项目名,如“hello”,然后,点击“Create”创建项目:
3.点击项目“hello”,右键“New”->"Python File"
4.填写“Name”:hello,点击“Ok”
新建的文件如下:hello.py
5.在hello.py中输入程序:
6.点击菜单“Run”(或者在写程序处右键)-> "Run…"进行运行:
7.下方可以看到运行的结果: