当前位置:网站首页>Variable parameter of variable length function
Variable parameter of variable length function
2022-07-07 09:15:00 【Is winter coming】
1、 Indefinite length parameter *args
Receive parameters of variable length , And return tuple format
ls=lambda *args:args
print(ls(2,9,1))
Execution results :
2、 Variable length keyword parameter **kwargs
Receive variable length keyword parameters , And return the dictionary format
la=lambda **kwargs:kwargs
print(la(name='hh',age='kk'))
Execution results :
边栏推荐
- Reflections on the way of enterprise IT architecture transformation (Alibaba's China Taiwan strategic thought and architecture practice)
- Do you have any certificates with high gold content?
- Skill review of test engineer before interview
- PMP examination experience sharing
- Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]
- 5A summary: seven stages of PMP learning
- Several common database connection methods
- 2022-06-30 Unity核心8——模型导入
- Locust performance test 3 (high concurrency, parameter correlation, assembly point)
- MySQL common statements
猜你喜欢
MySql数据库-事务-学习笔记
JVM 内存结构 详细学习笔记(一)
C语言指针(中篇)
外部中断实现按键实验
Cesium does not support 4490 problem solution and cesium modified source code packaging scheme
E-commerce campaign Guide
[istio introduction, architecture, components]
NVIC interrupt priority management
Common short chain design methods
MySQL common statements
随机推荐
systemd
Jemter operation
【SVN】SVN是什么?怎么使用?
NVIC interrupt priority management
5A summary: seven stages of PMP learning
Hard core sharing: a common toolkit for hardware engineers
Simulation volume leetcode [general] 1705 The maximum number of apples to eat
Postman interface test (II. Set global variables \ sets)
STM32 serial port register library function configuration method
Pycharm create a new file and add author information
How can I apply for a PMP certificate?
Summary of PMP learning materials
Isomorphic C language
Several common database connection methods
STM32的时钟系统
Interpretation of MySQL optimization principle
How to count the number of project code lines
H3C vxlan configuration
LeetCode每日一题(2316. Count Unreachable Pairs of Nodes in an Undirected Graph)
Two schemes of unit test