暂无 |

List-函数-len

len方法用来查看列表中项目的个数
nums = [1, 3, 5, 2, 4]
print(len(nums))


结果:
>>>
5
>>>

1

发表评论

    评价:
    验证码: 点击我更换图片
    最新评论