diff options
| author | liliqing <[email protected]> | 2023-06-26 00:51:47 +0800 |
|---|---|---|
| committer | liliqing <[email protected]> | 2023-06-26 00:51:47 +0800 |
| commit | 623ad2089d6cfc06b0324ce00c4cb5cf4f0db6a7 (patch) | |
| tree | fa4d85096a6c973698562e20a37fbfd2c1b3163e /main.py | |
| parent | 50abdae2c22a190fef9afcb0c66791b514a2709f (diff) | |
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -0,0 +1,27 @@ +import re +import hostinfo +import os +from p_columbus.p_columbus import p_columbus + +if __name__ == '__main__': + print(hostinfo.get_mac_address()) + print(hostinfo.get_operate_sys()) + + # path = r"E:\毕业设计\实验\system\client\lxy.txt" + targetDir = "/" + path = os.popen('sudo find ' + targetDir + ' | sudo xargs ls -lcd --full-time').readlines() + with open(path, 'r',encoding='UTF-8') as f: + files = f.readlines() + filelist = [re.sub(' +', ' ', file.strip('\n')) for file in files] + print(p_columbus(filelist)) + + + + + + + + + + + |
