len定义

len:获取字符串数据值的长度

h = 'abcd efg'
print(len(h)) #获取字符串数据值的长度
posted @ 2023-12-23 23:18  罗科-ROCCO  阅读(3)  评论(0编辑  收藏  举报