💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
1、len(),列表中有多少项 ``` numbers = [1,2,3] print len(numbers) ``` 2、count(),某个项有多少个 ``` color_List = ['red','blue','magenta','red','yellow'] print color_List.count('red') ``` 3、index(),查找某个值的索引![] ``` color_List = ['red','blue','magenta','red','yellow'] print color_List.index('blue') ```