方法一:
直接> python2.7/python3.6 test.py
方法二:
在文件首行寫上 #!/usr/bin/python3
這個是配置的路徑
也可以通過 > which python3 查找路徑
然后
> chmod +x test.py
>./test.py
方法一:
直接> python2.7/python3.6 test.py
方法二:
在文件首行寫上 #!/usr/bin/python3
這個是配置的路徑
也可以通過 > which python3 查找路徑
然后
> chmod +x test.py
>./test.py
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。