摘要:
lst = ["bob","jack","马云","马化腾","王健林"] del lst[1:3] print(lst) 一、列表索引和切片 lst = ["移动硬盘", "手机", 110, True, False, ["人民币", "美金", '欧元']] lst = ["海上钢琴师", "奥 阅读全文
摘要:
一、创建字符串 使用 '' , "" , ''' 和 """ 来创建字符串 var1 = 'hello, world' var2 = "jack" 二、索引和切片 (1)索引 s = "伊丽莎白鼠"print(s[0])print(s[1])print(s[2])print(s[3])print(s 阅读全文