import platform # 判断当前代码运行的系统是windows还是liunx print(platform.architecture()) print(platform.platform()) print(platform.system())
if 'indow' in platform.system(): symbol = r'\' else: symbol = r'/'
import platform # 判断当前代码运行的系统是windows还是liunx print(platform.architecture()) print(platform.platform()) print(platform.system())
if 'indow' in platform.system(): symbol = r'\' else: symbol = r'/'