12345678910111213141516171819 |
- # 循环从 65 到 90(包含 90)
- import json
- c = []
- for i in range(65, 91):
- # 将 ASCII 值转换为字符并打印
- c.append(chr(i))
- w = [i for i in c]
- for i in c:
- for j in c:
- w.append("{}{}".format(i, j))
- X = w[:349]
- obj = {}
- for index, ite in enumerate(X, 1):
- obj[ite] = "c{}".format(index)
- print(json.dumps(obj, ensure_ascii=False, indent=4))
|