Skip to content

Instantly share code, notes, and snippets.

@nanmi
Last active March 31, 2021 01:19
Show Gist options
  • Save nanmi/c920a6ca95b47d6f43ad8edc062bd6b7 to your computer and use it in GitHub Desktop.
Save nanmi/c920a6ca95b47d6f43ad8edc062bd6b7 to your computer and use it in GitHub Desktop.
python查看系统平台类型
import platform as plat
system_type = plat.system() # 由于不同的系统的文件路径表示不一样,需要进行判断
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment