2025-09-10:仓库迁移

This commit is contained in:
2025-09-10 16:12:45 +08:00
parent e0e49b0ac9
commit 3130e336a1
146 changed files with 4066 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# 普通的序列分解方式
def normal_func(list):
# list是可迭代对象能够直接分解成多个元素
length = list.__len__()
length= 2
x, y = list
# 如果list长度和接数据的元素数量不匹配会造成错误
x, y, z = list
# 在知道元素顺序的情况下想要丢弃list中的某些元素可以用下划线来无视变量
_ ,y = list