上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页
摘要: 阅读全文
posted @ 2023-11-15 21:45 limalove 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-11-15 21:44 limalove 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-11-15 21:43 limalove 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-11-15 21:42 limalove 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 函数重载的定义: 如果同一作用域内的几个函数名字相同但形参列表不同,称为重载函数。 参数列表又叫参数签名,包括参数的类型、个数和顺序,只要有一个不同就叫做参数列表不同。 阅读全文
posted @ 2023-09-29 13:44 limalove 阅读(27) 评论(0) 推荐(0) 编辑
摘要: methodcaller:调用参数指定的方法,实例方法和类方法都可以; 04. Python 冷知识:你可能不知道的三个操作符-itemgetter, attrgetter, methodcaller_哔哩哔哩_bilibili from operator import itemgetter, at 阅读全文
posted @ 2023-09-27 22:07 limalove 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 运行下面代码,报如下错误 for name in globals(): print(name) 解决办法是:将待遍历的对象转换成列表 for name in list(globals()): print(name) 阅读全文
posted @ 2023-09-25 22:35 limalove 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1,理解param.kind含义:给形参传递参数的方式,是位置传递,还是关键字传递 2,框架可以使用bind方法在真正调用函数前验证参数; 框架和IDE等工具可以使用这些信息验证代码; 注解只是元数据,可以供IDE、框架和装饰器等工具使用。 3,执行下面语句可以得到一个signature对象, im 阅读全文
posted @ 2023-09-20 19:26 limalove 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-09-20 18:20 limalove 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 菜鸟教程:https://www.runoob.com/python3/python3-data-structure.html 链接 1 # 在字典中遍历时,关键字和对应的值可以使用 items() 方法同时解读出来: 2 knights = {'gallahad': 'the pure', 'ro 阅读全文
posted @ 2023-09-03 09:21 limalove 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 28 下一页