python 获取系统平台

>>> import sys
>>> sys.platform
'darwin'
>>> 

原文地址:https://www.cnblogs.com/sea-stream/p/12166826.html