python 列表相关操作
摘要:
访问元素 index(x):返回列表中第一个值为 x 的元素的索引。 python fruits = ['apple', 'banana', 'cherry'] print(fruits.index('banana')) # 输出: 1 count(x):返回列表中值为 x 的元素的个数。 pyth 阅读全文
posted @ 2024-06-30 20:55 阿斯利康闪电 阅读(36) 评论(0) 推荐(0)
浙公网安备 33010602011771号