![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 95
秀球Gang
北京交通大学软件学院本科生
展开
-
「Python」Python 标准库之 itertools 使用指南
Python 标准库之 itertools 使用指南0 前言1 无限迭代器 infinite iteratorscountcyclerepeat2 有限迭代器 Iterators terminating on the shortest input sequenceaccumulatechainchain.from_iterablecompressdropwhilefilterfalsegroupbyislicepairwisetakewhileteezip_longest3 组合迭代器 Combinator原创 2021-07-30 18:20:47 · 2171 阅读 · 0 评论 -
「Python」利用第三方库 googletrans 进行文本翻译
# Python3.6+, install the googletrans using:# pip install googletrans# import Translator to detect language and translate...from googletrans import Translator# Customize service URLtranslator = Translator(service_urls=['translate.google.cn'])def t原创 2020-10-19 14:04:59 · 1035 阅读 · 0 评论 -
「Python」Python 标准库之 json 模块
Python 标准库之 json 模块JSON简介json模块基本使用json.dump()json.dumps()json.load()json.loads()第三方库simplejsonJSON简介JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于JavaScript(Standard ECMA-262 3rd Edition - December 1999)的一个子集。 JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括原创 2020-09-28 14:58:53 · 353 阅读 · 0 评论