py -2 hello.py (Windows)
py -3 hello.py (Windows)
文件开头加入:
#! python2
#! python3
pip
py -2 -m pip install xxx py -3 -m pip install xxx
mac:
#!/usr/bin/env python3
py -2 hello.py (Windows)
py -3 hello.py (Windows)
文件开头加入:
#! python2
#! python3
pip
py -2 -m pip install xxx
py -3 -m pip install xxx
mac:
#!/usr/bin/env python3