摘要:
第一种方法:in string = 'helloworld' if 'world' in string: print 'Exist' else: print 'Not exist' 第二种方法:find string = 'helloworld' if string.find(’world‘) == 阅读全文
posted @ 2019-05-08 11:38
老呂
阅读(289)
评论(0)
推荐(0)
摘要:
获取当前文件的路径d,获得d路径的父级目录parent_path: 获得规范的绝对路径: 阅读全文
posted @ 2019-05-08 10:12
老呂
阅读(162)
评论(0)
推荐(0)