摘要: from pandas import ExcelFile import pandas as pd from pandas import ExcelFile import pandas as pd xls = ExcelFile('test.xlsx') df = pd.read_excel(xls, 阅读全文
posted @ 2018-11-02 18:01 朔雪寒D.A.G 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 参考文档:https://stackoverflow.com/questions/1165352/calculate-difference-in-keys-contained-in-two-python-dictionaries class DiffDict(object): """获取两个dict 阅读全文
posted @ 2018-11-02 14:44 朔雪寒D.A.G 阅读(1733) 评论(0) 推荐(0) 编辑
摘要: import string import random def get_random_code(length=6, allow_symbol=False): """ 随机生成N位字符串 length: 字符串长度 allow_symbol: 生成的字符串中是否包含符号,默认只包含数字和字母 """ 阅读全文
posted @ 2018-11-02 13:52 朔雪寒D.A.G 阅读(410) 评论(0) 推荐(0) 编辑