Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每当我在 Windows 中编写新的 Python 脚本时,要在 UNIX 上执行它,我需要先授予权限chmod,然后运行dos2unix以使其可执行。
chmod
dos2unix
我不想运行这些命令。有没有办法在脚本本身中添加权限和 UNIX 格式?
PS我已经检查了这个链接。