当前位置:网站首页>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 :![]()
边栏推荐
- Record of structured interview
- NVIC interrupt priority management
- 硬件大熊原创合集(2022/06更新)
- Panel display technology: LCD and OLED
- Leetcode question brushing record (array) combination sum, combination sum II
- Reflections on the way of enterprise IT architecture transformation (Alibaba's China Taiwan strategic thought and architecture practice)
- OpenGL frame buffer
- Leetcode刷题记录(数组)组合总和、组合总和 II
- 2022-06-30 Unity核心8——模型导入
- Full link voltage test of the e-commerce campaign Guide
猜你喜欢

NVIC中断优先级管理

【Istio Network CRD VirtualService、Envoyfilter】

Hard core sharing: a common toolkit for hardware engineers

H3C VXLAN配置

What is the use of PMP certificate?

STM32串口寄存器库函数配置方法

2022-07-06 unity core 9 - 3D animation

Do you have any certificates with high gold content?

Entity of cesium data visualization (Part 1)

STM32的时钟系统
随机推荐
C language pointer (special article)
【Istio Network CRD VirtualService、Envoyfilter】
How does the project manager write the weekly summary and weekly plan?
5A summary: seven stages of PMP learning
Pycharm importing third-party libraries
【SVN】SVN是什么?怎么使用?
LeetCode每日一题(2316. Count Unreachable Pairs of Nodes in an Undirected Graph)
Leetcode刷题记录(数组)组合总和、组合总和 II
C language for calculating the product of two matrices
Leetcode question brushing record (array) combination sum, combination sum II
STM32的时钟系统
JWT certification used in DRF
MySql数据库-索引-学习笔记
Pycharm create a new file and add author information
[SVN] what is SVN? How do you use it?
Original collection of hardware bear (updated on May 2022)
C语言指针(特别篇)
Confitest of fixture py
Do you have any certificates with high gold content?
Serializer & modelserializer of DRF serialization and deserialization