随笔分类 - python
摘要:转载自:如何使用Python实现XML转JSON - 知乎 (zhihu.com) 代码: import os import json import xmltodict def xml_to_JSON(xml): # 格式转换 try: convertJson = xmltodict.parse(x
阅读全文
摘要:基础 for循环: for i in range(n): 循环n次, i=0 ~ n-1 for i in range(m, n): 循环n-m次,i= m ~ n-1 数组 初始化数组: arr = [] 向数组添加元素: arr.append('Hello') 从数组删除元素: arr.remo
阅读全文