Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What does fib(int(sys.argv[ 1]) mean in python3.4? draw
What does fib(int(sys.argv[ 1]) mean in python3.4? draw
Is to call the fib function

# can be expressed separately as:

n=int(sys.argv[ 1])

#【python? fibo.py? 1] Do this?

#sys.argv contains command-line parameters, argv[0] is the script name (fibo.py), argv[ 1] is the first parameter (1), so int is converted to integer because it is a string.

Fib(n) If it solves your problem, please adopt it!

If it is not solved, please continue to ask questions.