python项目实例

时间:2026年02月07日 20:27:11

Python len()方法 | 菜鸟教程

#!/usr/bin/env python# coding=utf-8str= runoob print(len(str))# 字符串长度l=[1,2,3,4,5]print(len(l))# 列表元素个数.Python len() 方法返回对象(字符、列表、元组等)...