摘要:
#去重 A = ['geovindu','刘杰','江山','河水','刘杰','geovindu','张三','李五'] B = [] for i in A: if i not in B: B.append(i) print(B) C = set(A) print(list(C)) # 移动位置 阅读全文
posted @ 2024-07-06 19:16
®Geovin Du Dream Park™
阅读(2)评论(0)推荐(0)
编辑
摘要:
# calculate file size in KB, MB, GB def convert_bytes(size): """ Convert bytes to KB, or MB or GB :param size :return """ for x in ['bytes', 'KB', 'MB 阅读全文
posted @ 2024-06-18 23:27
®Geovin Du Dream Park™
阅读(2)评论(0)推荐(0)
编辑