摘要:
关于屏蔽FutureWarning: The default value of regex will change from True to False in a future version.的输出信息的方法: import warnings warnings.filterwarnings("ig 阅读全文
摘要:
关于Python123中的排序问题 统计方法 1、collections.Counter 2、dic={k:ls.count(k) for k in set(ls)} 3、dic[i]=dic.get(i,0)+1 排序方法: 1、sorted(dic.items(),key=lambda x:x[ 阅读全文