summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorliliqing <[email protected]>2023-06-26 00:51:47 +0800
committerliliqing <[email protected]>2023-06-26 00:51:47 +0800
commit623ad2089d6cfc06b0324ce00c4cb5cf4f0db6a7 (patch)
treefa4d85096a6c973698562e20a37fbfd2c1b3163e /main.py
parent50abdae2c22a190fef9afcb0c66791b514a2709f (diff)
“first”HEADmain
Diffstat (limited to 'main.py')
-rw-r--r--main.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 0000000..0e69412
--- /dev/null
+++ b/main.py
@@ -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))
+
+
+
+
+
+
+
+
+
+
+