• 2022-06-18 问题

    names = ["Lihua","Rain","Jack","Xiuxiu","Peiqi","Black"]names.insert(-1,"Peiqi")print(names.index("Peiqi"))

    names = ["Lihua","Rain","Jack","Xiuxiu","Peiqi","Black"]names.insert(-1,"Peiqi")print(names.index("Peiqi"))

  • 2022-06-18 问题

    已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素? A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl") B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl") C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl") D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])

    已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素? A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl") B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl") C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl") D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])

  • 2022-06-18 问题

    ‍已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素?‌ A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl") B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl") C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl") D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])

    ‍已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素?‌ A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl") B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl") C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl") D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])

  • 2022-06-18 问题

    返回names列表中Peiqi的索引值(下标)

    返回names列表中Peiqi的索引值(下标)

  • 2022-06-18 问题

    创建一个空列表,命名为names,往里面添加 Lihua、Rain、Jack、Xiuxiu、Peiqi和Black元素。

    创建一个空列表,命名为names,往里面添加 Lihua、Rain、Jack、Xiuxiu、Peiqi和Black元素。

  • 2022-06-18 问题

    names = ["Peiqi","Black"]numbers = [1,2,3]names.extend(numbers) # extend()方法表示合并print(names)代码的执行结果是_________.

    names = ["Peiqi","Black"]numbers = [1,2,3]names.extend(numbers) # extend()方法表示合并print(names)代码的执行结果是_________.

  • 2022-06-18 问题

    一个列表名为names,里面有old_driver,rain,jack,shanshan,peiqi,black_girl 元素, 以下用列表分片的方法访问前三个元素的语句正确的是: A: names[0:3] B: names[0:2] C: names[0:4] D: names[1:4]

    一个列表名为names,里面有old_driver,rain,jack,shanshan,peiqi,black_girl 元素, 以下用列表分片的方法访问前三个元素的语句正确的是: A: names[0:3] B: names[0:2] C: names[0:4] D: names[1:4]

  • 2022-06-18 问题

    ‌一个列表名为names,里面有old_driver,rain,jack,shanshan,peiqi,black_girl 元素,‏‌ 以下用列表分片的方法访问前三个元素的语句正确的是:‏‌‏ A: names[0:3] B: names[0:2] C: names[0:4] D: names[1:4]

    ‌一个列表名为names,里面有old_driver,rain,jack,shanshan,peiqi,black_girl 元素,‏‌ 以下用列表分片的方法访问前三个元素的语句正确的是:‏‌‏ A: names[0:3] B: names[0:2] C: names[0:4] D: names[1:4]

  • 2022-06-18 问题

    已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素? A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl") B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl") C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl") D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])

    已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素? A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl") B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl") C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl") D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])

  • 1