summaryrefslogtreecommitdiff
path: root/hostinfo.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 /hostinfo.py
parent50abdae2c22a190fef9afcb0c66791b514a2709f (diff)
“first”HEADmain
Diffstat (limited to 'hostinfo.py')
-rw-r--r--hostinfo.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/hostinfo.py b/hostinfo.py
new file mode 100644
index 0000000..88c2535
--- /dev/null
+++ b/hostinfo.py
@@ -0,0 +1,12 @@
+import uuid
+import platform
+
+def get_mac_address():
+ mac=uuid.UUID(int = uuid.getnode()).hex[-12:]
+ return ":".join([mac[e:e+2] for e in range(0,11,2)])
+
+def get_operate_sys():
+ return platform.platform()
+
+
+