如何在给定的命令行参数上打印Bash中的素数?

时间:2018-06-02 03:29:54

标签: bash

我需要根据给定的参数在bash中打印素数。 示例代码;

def tester(start):
    def nested(label):
        nonlocal state
        print(label,state) 
        state += 1         
        print("after:",state)
    state = start          
    return nested

它说Bash不支持大括号扩展中的变量。我可以解决这个问题吗?

0 个答案:

没有答案
相关问题