当前位置:网站首页>4.ypthon function foundation
4.ypthon function foundation
2022-06-25 20:04:00 【Iron plate jumping to the bottom】
1. Explain the usage of various parameters of some functions ?
The parameters of the function are divided into : Formal parameters and actual parameters
Shape parameter
Positional arguments
A similar variable is used to store the value passed from the actual parameter of the corresponding position
Default parameters
Used for keyword parameters with multiple common attributes and values in the arguments
Indefinite length parameter
*args
Used to receive position parameters of unknown length
**kwargs
Keyword parameter for receiving position length
Actual parameters
Positional arguments
One or more , Comma separated arguments
Key parameters
One or more with Key and Value Dictionary type parameter for
2. For functions return What is it? ?
For functions ,return It is a value that indicates the end of the function and returns a result to the outside
边栏推荐
猜你喜欢
<C>. Figure guessing game
[harmonyos] [arkui] how can Hongmeng ETS call pa
Using flex to implement the Holy Grail layout is as simple as that
New features of php7
Wechat applet connects to the server to display mqtt data information
Web components - Basics
<C>. array
Mail monitoring cloud script execution progress
Bloom filter
Uni app through uni Navigateto failed to pass parameter (pass object)
随机推荐
Arduino read temperature
Arduino : No such file or directory
PostgreSQL user role permissions
2.3 partial sum of square and reciprocal sequences
三、HikariCP获取连接流程源码分析三
DataX script task development record
Google SEO external chain releases 50+ website platform sharing (e6zzseo)
PAT B1063
Uni app through uni Navigateto failed to pass parameter (pass object)
Jsonp function encapsulation
mysql load data infile
Use of serialize() and serializearray() methods for form data serialization
Pdf file download (the download name is the same as the file name)
PHP little knowledge record
PAT B1059
<C>. String comparison
一、HikariCP获取连接流程源码分析一
PAT B1057
II Traits (extractors)
5、 Initialization analysis II of hikaricp source code analysis