![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
LNN1901
这个作者很懒,什么都没留下…
展开
-
Python argument
1、函数定义A positional argument is a name that is not followed by an equal assign(=) and default value. positional argument:..., abc, ....A keyword argument is followed by an equal sign(=) and an expression that gives its default value. k...原创 2020-08-14 11:53:13 · 519 阅读 · 0 评论 -
Python dictionary
1、update()增加/修改dictionary内元素param = { 'key': '22d6f93f929728c10ed86258653ae14a', 'keywords': '小区', 'city': '021',}param.update({'keywords':'xiaoqu','city':'025','province':'js'})print(param)> {'key': '22d6f93f929728c10ed86258653ae14.原创 2020-08-14 10:42:27 · 100 阅读 · 0 评论 -
Python Class
Python Class1、Now what can we do with instance objects?The only operations understood by instance objects are attribute references. There are two kinds of valid attribute names: data attributes and methods.我们能对实例对象做什么呢?实例对象仅能理解的操作是属性的引用。存在两种有效的属性:数据属性.原创 2020-08-06 11:09:05 · 153 阅读 · 0 评论