Home  >  Article  >  Backend Development  >  Introduction to python3-sys module

Introduction to python3-sys module

高洛峰
高洛峰Original
2017-03-26 18:26:232363browse

Python3-sys module introduction, friends in need can refer to it

# Auther: Aaron Fan
import sys

print(sys.path ) #Print environmentVariables
print(sys.argv) #Print the script name and all parameters of the script
print(sys.argv[2]) #Print the second number followed by the script parameters

The above is the detailed content of Introduction to python3-sys module. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn