We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db3766d commit b38c166Copy full SHA for b38c166
3 files changed
agmcs/0015/0015.py
@@ -0,0 +1,14 @@
1
+import json, xlwt
2
+
3
+with open('city.txt','r')as f:
4
+ data = f.read().decode('gbk')
5
+data = json.loads(data)
6
7
+book = xlwt.Workbook(encoding='utf-8')
8
+sheet = book.add_sheet('city')
9
10
+for i in range(len(data)):
11
+ sheet.write(i,0,i)
12
+ sheet.write(i,1,data[str(i+1)])
13
+book.save('city.xls')
14
agmcs/0015/city.txt
@@ -0,0 +1,5 @@
+{
+ "1" : "�Ϻ�",
+ "2" : "����",
+ "3" : "�ɶ�"
+}
agmcs/0015/city.xls
5.5 KB
0 commit comments