一、工具html
(1)编代码用“JetBrains PyCharm”;python
(2)要想编写的脚本可以直接双击运行,还须要用pyinstaller打包工具;工具
(3)要下载pyinstaller就用Python自带的工具pip:pip install PyInstaller;spa
二、打包code
pyinstaller -F test.py # 加上-F参数能打包成一个独立的exe程序
三、PyCharm在Mac上的注册码htm
参考:http://www.360kb.com/kb/2_24.htmlblog
四、设置建立文件时自动添加信息ip
Preferences -> Editor -> File and Code Templates -> Python Scripts 设置:it
#!/usr/bin/env python # -*- coding: utf-8 -*- # @File : ${NAME}.py # @Time : ${DATE} ${TIME} # @Author : ${USER} # @Email : liuheng.klh@alibaba-inc.com