nt.dinh Asked: 2024-04-29 11:16:33 +0800 CST 是否可以在 Bash 中的一行中进行分配和测试? 5 在Python中我可以写这段代码: if (result := some_function()) > 0: # do some thing with result Bash 脚本中可以吗? bash