python 模块 sys

import sys

sys.argv       # 参数,第一个参数是脚本的文件明,自定义参数为数组的第二个   sys.argv[1]

sys.version   #  python的版本

sys.path     # 返回模块路径

sys.exit(n)  # 退出程序,返回n

sys.platform   #返回系统的名称

sys.stdout.write(r'please')   # 系统标准输出

相关文章:

  • 2021-07-18
  • 2021-10-21
  • 2021-10-21
  • 2021-07-17
  • 2021-07-01
猜你喜欢
  • 2021-04-04
  • 2021-10-21
  • 2021-12-01
  • 2021-12-06
  • 2021-09-06
  • 2022-12-23
相关资源
相似解决方案