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] = []