有没有一个更简单的方法来做以下事情
filename = 'vudu_hail_20140101.xml'
acceptable_stems = ['vudu', 'google']
process_file = False
for acceptable_stem in acceptable_stems:
if acceptable_stem in filename:
process_file = True
基本上,我是在寻找一个关于文件名中是否有一个词干的布尔行列式。如果只有一个班轮怎么办
Tags:
使用^{} 关键字怎么样:
示例:
相关问题 更多 >
编程相关推荐