摘要: 查找 index() print(a.index("张三")) 输出结果:1 列表.index(对象,开始位置,结束位置) print("张三",0,2) 输出结果: 1 count() 统计出现的次数 列表.count("对象") print(a.count("张三")) 输出结果: 1 阅读全文
posted @ 2021-03-11 10:00 離落 阅读(129) 评论(0) 推荐(0)
摘要: 修改 列表[下标]= "对象" a.[0]= "张三" print(a) 输出结果: [”张三”, ”李四”,”王五”] *总结:通过下标定位修改对象 列表[起始位置:结束位置]=”对象” a[1:2]=”爱上” print(a) 输出结果: ['张三', '爱', '上', '王五'] *总结:通 阅读全文
posted @ 2021-03-11 09:59 離落 阅读(153) 评论(0) 推荐(0)
摘要: 删除 del 列表[索引] del a[1] 输出结果: ['张三', '王五'] *总结:删除列表下标第一个(张三下标为0,则下标1为李四) del 列表[起始位置:结束位置] del a[0:2] 输出: ['王五'] pop()删除 列表.pop(索引) 输出: ['张三', '王五'] re 阅读全文
posted @ 2021-03-11 09:57 離落 阅读(269) 评论(0) 推荐(0)
摘要: a=[”张三”, ”李四”,”王五”] a1=(’赵六’,’黄七’) a2=[”徐九”,”华十”] print(a[2]) 输出结果:李四 *总结:输出列表第二个对象 添加 append() 方法 a.append(a1) a.append(a2) print(a) 输出:[‘张三’,’李四’,’王 阅读全文
posted @ 2021-03-11 09:54 離落 阅读(89) 评论(0) 推荐(0)
{ "posted": "Dreamer-Paul", "version": "Live2DViewerEX Config 1.0", "model": "sagiri.moc", "textures": [ "textures/texture_00.png", "textures/texture_01.png" ], "layout": { "center_x": 0, "center_y": 0, "width": 2 }, "motions": { "tap": [ { "file": "motions/tap/c.mtn" } ], "idle": [ { "file": "motions/idle/idle_01.mtn" }, { "file": "motions/idle/idle_02.mtn" }, { "file": "motions/idle/idle_03.mtn" }, { "file": "motions/idle/idle_04.mtn" } ] }, "physics": "physics.json" }