What is the difference between arguments and parameters?
来源:互联网 发布:免费流量控制软件 编辑:程序博客网 时间:2024/05/21 13:59
https://docs.python.org/3/faq/programming.html#what-is-the-difference-between-arguments-and-parameters
Parameters are defined by the names that appear in a function definition, whereas arguments are the values actually passed to a function when calling it. Parameters define what types of arguments a function can accept. For example, given the function definition:
foo, bar and kwargs are parameters of func
. However, when calling func
, for example:
the values 42
, 314
, and somevar
are arguments.
简而言之:arguments是实参,parameters是形参。阅读英文文档有点帮助。
阅读全文
0 0
- What is the difference between arguments and parameters?
- What's the difference between program arguments and VM arguments?
- What is the difference between test, [ and [[ ?
- what is the difference between the setTimeout and setInterval
- What is the difference between DHTML and the DOM?
- What is the difference between the mouseover and mouseenter events?
- What is the difference between AWT and SWT?
- What is the difference between User Control and Custom Control?
- What is the difference between an EXE and a DLL?
- What is the difference between XML and C or C ?
- What is the difference between SMOD and CMOD?
- what is the difference between little-endian and big-endian.
- What is the difference between procedural and nonprocedural language?
- What is the difference between a thread and a process?
- What is the difference between objectForKey and valueForKey?
- What is the difference between Microsoft TMG and UAG ?
- What is the Difference Between http and https?
- what is the difference between ELF files and bin files
- (五)spring配置文件--使用外部属性文件
- Go实战--go语言操作PostgreSQL数据库(github.com/lib/pq)
- CF 873 B. Balanced Substring【map】
- 高并发后端设计-限流篇
- 前台传递Integer[] ids确保后台能准确接收
- What is the difference between arguments and parameters?
- iOS11 设置搜索栏取消按钮颜色
- ue4 character 物理测试
- background详解
- ASP.NET WebAPi之断点续传下载(下)
- struts2
- 内联函数
- 秒杀多线程第七篇 经典线程同步 互斥量Mutex
- BZOJ 1231: [Usaco2008 Nov]mixup2 混乱的奶牛 状压dp