每个元素都是一个list child1 = root[0] # .tag 可以取出元素的标签 print(child1.tag, len(root)) # 大部分list方法都可以使用在element上
確定! 回上一頁