摘要: 介绍 setuptools是python中的包安装和分发工具。 // 通过源码安装包 python setup.py install setuptools中主要包含如下两个函数: from setuptools import setup, find_packages 一、setup函数 setup函 阅读全文
posted @ 2022-09-15 16:39 干了这瓶老干妈 阅读(820) 评论(0) 推荐(0) 编辑
摘要: args :是 arguments 的缩写,表示位置参数; kwargs: 是 keyword arguments 的缩写,表示关键字参数。 *和**:是python中两种可变参数的形式,且*args 必须放在 **kwargs 的前面,因为位置参数在关键字参数的前面。 一、*args的用法 *ar 阅读全文
posted @ 2022-09-15 15:55 干了这瓶老干妈 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 代码: import itertools aa = ['a', 'b', 'c'] bb = list(itertools.permutations(aa, 2)) print(bb) print("######################") cc = list(itertools.combi 阅读全文
posted @ 2022-09-15 11:20 干了这瓶老干妈 阅读(827) 评论(0) 推荐(0) 编辑
Live2D