摘要: 直接赋值:就是对象的引用(别名) 浅拷贝(copy):拷贝父对象,不会拷贝对象的内部的子对象 深拷贝(deepcopy):copy模块的deepcopy方法,完全拷贝了父对象及其子对象 字典浅拷贝: >>>a = {1: [1,2,3]} >>> b = a.copy() #浅拷贝 >>> a, b 阅读全文
posted @ 2022-03-01 16:59 一只艾米果 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 异常处理和断言(Assertionly) python标准异常可参考:https://www.runoob.com/python/python-exceptions.html 异常就是一个事件,该事件会在程序执行过程中发生,影响了程序的正常执行。 异常是Python对象,表示一个错误。 当pytho 阅读全文
posted @ 2022-03-01 16:01 一只艾米果 阅读(54) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/aaronthon/p/9435967.html 阅读全文
posted @ 2022-02-28 20:21 一只艾米果 阅读(20) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/PY0312/article/details/88956795 阅读全文
posted @ 2022-02-28 20:00 一只艾米果 阅读(377) 评论(0) 推荐(0) 编辑
摘要: map()函数会根据提供的函数对指定序列做映射。 map()函数的语法 map(function, iterable,...) 参数说明 function --函数 iterable --一个或多个序列 >>> def square(x) : # 计算平方数 ... return x ** 2 .. 阅读全文
posted @ 2022-02-28 19:54 一只艾米果 阅读(345) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/andyleo0111/article/details/87878784 阅读全文
posted @ 2022-02-28 19:35 一只艾米果 阅读(166) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/lmxt520/article/details/81108791 阅读全文
posted @ 2022-02-28 17:25 一只艾米果 阅读(49) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_40808154/article/details/94591431 阅读全文
posted @ 2022-02-28 17:17 一只艾米果 阅读(80) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_40628106/article/details/85039366 阅读全文
posted @ 2022-02-28 17:07 一只艾米果 阅读(8) 评论(0) 推荐(0) 编辑
摘要: https://www.php.cn/python-tutorials-422424.html https://www.runoob.com/python3/python-sort-dictionaries-by-key-or-value.html 阅读全文
posted @ 2022-02-28 16:16 一只艾米果 阅读(39) 评论(0) 推荐(0) 编辑