1, 找到python3安装路径 2, vi ~/.bash_profile 3, 增加内容: alias py=“/usr/bin/python3” 4, 重载source ~/.bash_profile 5,执行py