我正在尝试在终端上执行test.sh.
我的test.sh位于/ Home/monty文件夹中,我将其设为可执行文件:
chmod 755 test.sh
Run Code Online (Sandbox Code Playgroud)
我尝试使用:$./ test.sh执行它我收到一个错误:
bash: ./test.sh: /usr/bin/bash: bad interpreter: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我尝试在终端上执行此操作:
$ PATH=$PATH:/Home/monty
Run Code Online (Sandbox Code Playgroud)
但无济于事.我该如何解决这个问题?
我的round函数在linux python 2.6.6中不起作用,而在使用以下类型的代码后它在Windows 3.4.2中工作正常:
Array[i] = round(math.e ** AnotherArray[i], 4)
v.3.4.2: 0.0025999999999999999 => 0.0026
v.2.6.6: 0.0025999999999999999 => 0.0025999999999999999
Run Code Online (Sandbox Code Playgroud)