第二天学习:PyCharm的使用(1)
1、配置python解析器
Create Project->Interpreter
2、配置背景色及字体
File->settings->Color Scheme Font->Scheme 设置为Darcula(可以拷贝一份,点击右边的设置按钮后选择Duplicate),Size 18, Line spacing 1.2
3、配置脚本头文件:
File->settings->Editor->File and Code Templates->Python Script,填入:
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : ${DATE} ${TIME} # @Author : yshan # @File : ${NAME}.py
4、PyCharm运行
name = raw_input("please input your name: ") print('hello ' + name)
run->run 运行程序
D:\Python27\python.exe C:/Users/Yshan/PycharmProjects/test/bbb.py please input your name: tet hello tet Process finished with exit code 0