python
zobwink
这个作者很懒,什么都没留下…
展开
-
python 删除字符串中的符号
利用字符串的str.translate函数,也可以进行简洁的替换,str.maketrans,此静态方法返回用于 str.translate的翻译表。 str.maketrans参数解释 如果只有一个参数,则必须是字典映射Unicode 序形(整数)或字符(长度 1 字符串)到 Unicode 序号、字符串(任意长度)或无。然后,字符键将转换为普通键。 如果有两个参数,它们必须是相等长度的字符串,在生成的字典中,x 中的每个字符将映射到 y 中的相同位置的字符。 如果存在第三个参数,则必须是字符串,其字符原创 2021-03-25 00:38:23 · 957 阅读 · 0 评论 -
国内各大源
各大源 清华:https://pypi.tuna.tsinghua.edu.cn/simple/ 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 华中科技大学:http://pypi.hustunique.com/ 山东理工大学:http://pypi.sdutlinux.org/ 豆瓣:http://pypi.douban.com/simple/ 中科大: https://原创 2020-11-23 20:13:06 · 301 阅读 · 0 评论