python 判断当前系统是linux还是windows if platform.system().lower() == 'windows': pass elif platform.system().lower() == 'linux': pass