chen459664's picture
Add files using upload-large-folder tool
55c92b3 verified
Raw
History Blame Contribute Delete
320 Bytes
import json
file_path = "original_configure.json"
for i in range(10, 29):
data = [4] * 32
data[27] = 2
if data[i] == 2:
continue
data[i] = 2
print(data)
with open(f"configure_{i}-4to2.json", "w", encoding="utf-8") as f:
json.dump(data, f, ensure_ascii=False, indent=2)