who_care

导航

 

2018年5月30日

摘要: 1、一个str A,列表B的所有元素都在A中时返回True A = 'HeooWoldHomeUbuntuCentOSFedora'B = ['Ubuntu', 'CentOS', 'Home', 'Mint'] 方法一: result = [b for b in B if b in A ] ==  阅读全文
posted @ 2018-05-30 15:45 who_care 阅读(844) 评论(0) 推荐(0) 编辑