摘要:
os.path平台文件名管理 >>> test = "/root/test/test.txt" >>> import os abspath()返回绝对路径: >>> print(os.path.abspath(test)) /root/test/test.txt bashname(),返回文件基名, 阅读全文
摘要:
创建集合 test1 = set(1,3,5,6,7,8) test2 = set(2,4,6,7,9) difference()返回新的集合,显示test2中有但是test1中没有 >>> test2 = {'2','4','6','7','9'} >>> print(test2) {'6', ' 阅读全文