随笔分类 -  python笔记

摘要:[weixin-python](https://weixin-python.readthedocs.io/zh/latest/login.html) wxauto wxpy 阅读全文
posted @ 2023-08-28 17:42 soccerchen 阅读(57) 评论(0) 推荐(0)
摘要:标题包括内容直接抄的:https://zhuanlan.zhihu.com/p/78181226 最基本的调用顺序说得很清楚 阅读全文
posted @ 2023-07-31 16:49 soccerchen 阅读(46) 评论(0) 推荐(0)
摘要:这里讲两个函数的用法:__doc__和__annotations__ 假设我写了如下的函数: def f(ham: str, eggs: str = 'eggs') -> str: '1254' '5234' print("Annotations:", f.__annotations__) prin 阅读全文
posted @ 2023-07-23 15:54 soccerchen 阅读(37) 评论(0) 推荐(0)
摘要:一、基本参数使用方法 如下的代码大家应该都见过: def func1(n): if n <= 0: print('请输入一个整数!') func1(int(input())) elif n <= 2: return 1 else: return func1(n-1)+func1(n-2) 这个是是一 阅读全文
posted @ 2023-07-22 16:59 soccerchen 阅读(202) 评论(0) 推荐(0)