同时存在Python2和Python3的运行范例

上传:yanghapppy 浏览: 50 推荐: 0 文件:ZIP 大小:666B 上传时间:2019-03-13 22:02:10 版权申诉
# 方法一:如果系统中同时存在 Python 2 和 Python 3,可用它指定版本来运行代码: # py -2 helloworld.py # py -3 helloworld.py # 方法二:使用pip # py -2 -m pip install requests # py -3 -m pip install requests # -m pip 表示运行 pip 模块
上传资源
用户评论