diff --git "a/\347\254\254\344\272\224\345\221\250\350\257\276\345\240\202\346\265\213\350\257\225" "b/\347\254\254\344\272\224\345\221\250\350\257\276\345\240\202\346\265\213\350\257\225" new file mode 100644 index 0000000000000000000000000000000000000000..d22015a8bda0fa0ca2756b3b5050e9adaddba02f --- /dev/null +++ "b/\347\254\254\344\272\224\345\221\250\350\257\276\345\240\202\346\265\213\350\257\225" @@ -0,0 +1,28 @@ +Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32 +Type "help", "copyright", "credits" or "license()" for more information. +>>> list=["坦克","战士","法师"] +>>> list +['坦克', '战士', '法师'] +>>> list insert(0,"刺客") +SyntaxError: invalid syntax +>>> list.insert(0,"刺客") +>>> list +['刺客', '坦克', '战士', '法师'] +>>> list.insert(0,"刺客") +>>> lis +Traceback (most recent call last): + File "", line 1, in + lis +NameError: name 'lis' is not defined +>>> list +['刺客', '刺客', '坦克', '战士', '法师'] +>>> list.remove("刺客") +>>> list +['刺客', '坦克', '战士', '法师'] +>>> list.remove("刺客") +>>> list +['坦克', '战士', '法师'] +>>> list[1:3]=["辅助","法师"] +>>> list +['坦克', '辅助', '法师'] +>>> \ No newline at end of file