标签: python-3.7
看不到函数中使用的n。我使用n来处理列表,尽管调用了该函数,但我不明白为什么它不能识别n。并且该函数内部的列表不起作用。
def t(): for n in range(1, 12, 1): n = str(n) t() tk = {n + " 1010": "1010", n + " 1011": "1011", n + " 1110": "1110", n + " 1200": "1200", n + " 1201": "1201"}
enter image description here