Last active
March 31, 2021 01:19
-
-
Save nanmi/c920a6ca95b47d6f43ad8edc062bd6b7 to your computer and use it in GitHub Desktop.
python查看系统平台类型
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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