常用库 import collections 可以加载字典类:record = collections.defaultdict(int / list)math数学库 常用函数 字符串 ord():获取字符串的Unicode编码str.lower():让字符串变成小写str.upper():让字符串变成大写 数值: math.floor():向下取整math.ceil():向上取整mat.round():四舍五入,第二位参数可以指定保留位数