From 061ee878f542988a728301865de66f57445f0510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E7=92=9F=E5=BD=A4?= Date: Mon, 29 Mar 2021 21:43:42 +0800 Subject: [PATCH] =?UTF-8?q?add=20python=5F=E5=88=97=E8=A1=A8=E7=BB=83?= =?UTF-8?q?=E4=B9=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...345\210\227\350\241\250\347\273\203\344\271\240" | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 "python_\345\210\227\350\241\250\347\273\203\344\271\240" diff --git "a/python_\345\210\227\350\241\250\347\273\203\344\271\240" "b/python_\345\210\227\350\241\250\347\273\203\344\271\240" new file mode 100644 index 0000000..182a960 --- /dev/null +++ "b/python_\345\210\227\350\241\250\347\273\203\344\271\240" @@ -0,0 +1,13 @@ +heroes=[["妖狐","御馔津","二口女","鬼童丸"],["日和坊","海坊主","山兔","桃花妖"],["彼岸花","面灵气","玉藻前","荒"]] +print("射手有:", heroes[0]) +print("辅助有:", heroes[1]) +print("法师有:", heroes[2]) +print("添加射手:首无") +heroes[0].append("首无") +print(heroes[0]) +print("删除辅助:山兔") +heroes[1].remove("山兔") +print(heroes[1]) +print("替换法师:面灵气") +heroes[2][1]="鬼女红叶" +print(heroes[2]) \ No newline at end of file -- Gitee