解决方法:给hello.py增加可执行权限: chmod +x ./hello.py
给hello.py增加可执行权限后, 该文件变为绿色.
再次执行脚本, 可以正常运行!
执行python脚本的时候报错: bash: ./hello.py: 权限不够
最新推荐文章于 2024-07-12 19:06:42 发布
解决方法:给hello.py增加可执行权限: chmod +x ./hello.py
给hello.py增加可执行权限后, 该文件变为绿色.
再次执行脚本, 可以正常运行!