IT入门 > 教程 > python教程 > 结构控制 >
  • Lists-空

    1970/01/01 点击:180500

  • Lists-多个类型

    2019/08/31 点击:158258

    通常,列表将包含单个项类型的项目,但也可以包括若干不同类型。 列表也可以嵌套在其他列表中。 number = 3things = [string, 0, [1, 2, number], 4.56]print(things[1])print(things[2])print(things[2][2])结果

  • Lists-索引

    2020/11/26 点击:142458

    索引可能超出列表值的范围会导致索引错误。 某些类型,如字符串,可以像列表一样索引。索引字符串的行为就像在索引包含字符串中的每个字符的列表一样。 对于其他类型,如整数

  • lists-列表操作

    2019/08/31 点击:196114

    列表索引的某个项目可以重新赋值 举例: nums = [7, 7, 7, 7, 7]nums[2] = 5print(nums) Result:[7, 7, 5, 7, 7]

  • list-列表乘&加

    1970/01/01 点击:142964

  • List-检测-in

    1970/01/01 点击:151936

  • List-检测-not

    1970/01/01 点击:117799

  • List-函数-append

    1970/01/01 点击:206101

  • List-函数-len

    1970/01/01 点击:156733

  • List-函数-insert

    1970/01/01 点击:191456