方法:使用treeview自带的delete方法删除所有的子tree
方案一(for循环):
for child in tree.get_children():
tree.delete(child)
方案二:
# 思路和方案一一样,不过写法更简单
# 使用*将tree.get_children()解包,作为多个参数传给delete方法
# 相当于 tree.delete(child1, child2, child3, ...)
tree.delete(*tree.get_children())