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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2021-12-25
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
相关资源
相似解决方案