difference bewteen *args and **args in python?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了difference bewteen *args and **args in python?相关的知识,希望对你有一定的参考价值。

It‘s also worth noting that you can use * and ** when calling functions as well. This is a shortcut that allows you to pass multiple arguments to a function directly using either a list/tuple or a dictionary. For example, if you have the following function:

 

When you use two asterisks you usually call them **kwargs for keyword arguments. 

 

 

ref: http://stackoverflow.com/questions/36901/what-does-double-star-and-star-do-for-parameters

http://stackoverflow.com/questions/3394835/args-and-kwargs

以上是关于difference bewteen *args and **args in python?的主要内容,如果未能解决你的问题,请参考以下文章

Symmetric Difference FreeCodeCamp

set_difference的介绍

和差积商

The difference between UDS on IP and UDS on CAN

python之路-set

what is the difference between upload and download?