python小技巧

python 小技巧

  1. 过滤字符串中的中文,只保留英文数字标点。str.encode('ascii', 'ignore')
原文地址:https://www.cnblogs.com/TianyuSu/p/13728978.html