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.
n = input(': ') eval('Array'+n)=[]
我想它会是这样的,但这只会产生 - '不能分配给函数调用',有什么帮助吗?如果可以的话,那就是...
使用字典:
arrays = {} n = input(': ') arrays['Array%s' % n] = []