The parameters of Python3 basic functions are variable parameters. The passed parameters are converted to a list, and python3 is variable.

Source: Internet
Author: User

The parameters of Python3 basic functions are variable parameters. The passed parameters are converted to a list, and python3 is variable.

Town Field Poetry:
Listen to the words and give up the world name and benefits. I would like to be a real Tibetan.
I would like to do what I have learned to achieve a conscientious blog. May the rest of the world reproduce the wisdom and purity of the body.
------------------------------------------

Code:

# Def myFun (* argments): values = [x for x in argments] print (values) myFun (, 6)

 


Result:

============= RESTART: C:/Users/Administrator/Desktop/MyCode. py = [1, 2, 3, 4, 6]>

 


------------------------------------------
The essence of the blog is a poem in the technical aspect. Python version 3.5, Windows 7.
Python is an excellent language and is worth learning. I learned from the video tutorial of little turtle. We recommend that you.
I am a newbie, so if there are any improvements or even errors in the content of the blog post, please leave a comment. I will try to correct it and strive for a conscience blog.
Note: This article is only for scientific research. If I inadvertently infringe your rights and interests, please be sure to inform me in time and I will make corrections.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.