You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
389 B
20 lines
389 B
from tkinter import *
|
|
import platform
|
|
|
|
|
|
def get_platform():
|
|
import platform
|
|
sys_platform = platform.platform().lower()
|
|
if "windows" in sys_platform:
|
|
print("Windows")
|
|
elif "macos" in sys_platform:
|
|
print("Mac os")
|
|
elif "linux" in sys_platform:
|
|
print("Linux")
|
|
else:
|
|
print("其他系统")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
get_platform()
|