标签:rap match rom 指定 mil tran lis containe bsp
#统计列表每个元素中指定单词出现的个数
words=[‘apple‘,‘pare‘,‘banana‘,‘and‘,‘peach‘,‘Anda‘]
for word in words:
print(word.lower().count(‘a‘)) #lower()识别大小写
strings=[‘a‘,‘bv‘,‘tit‘,‘apple‘,‘ctr‘]
[x.title() for x in strings if len(x)>2]
list(map(len,strings))
import numpy as np
three=np.arange(18).reshape(2,3,3)
three
three.transpose(2,1,0)
标签:rap match rom 指定 mil tran lis containe bsp
原文地址:https://www.cnblogs.com/liyun1/p/11261867.html