如 判断str是否包含str_list中的元素 str = "this is string example....wow!!!" str_list = ['aa','bb','str','ex'] flag = all( i in str for i in str_list) #用any(),或者a Read More
posted @ 2022-03-01 11:24 欣欣姐 Views(186) Comments(0) Diggs(0) Edit