小编com*_*tea的帖子

找不到.sh文件

我正在尝试在终端上执行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)

但无济于事.我该如何解决这个问题?

shell ubuntu sh

8
推荐指数
2
解决办法
2万
查看次数

Round Function在v2.6.6中不起作用,但适用于v3.4.2

我的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)

python python-2.x python-3.x

2
推荐指数
1
解决办法
160
查看次数

标签 统计

python ×1

python-2.x ×1

python-3.x ×1

sh ×1

shell ×1

ubuntu ×1