We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在这个函数中有两点疑问,希望得到雪峰老师的指导
`` for k, v in defaults.iteritems(): params[k] = kw.pop(k, v) # dict.pop(key, default_value) 如果用户未设定,则使用默认值。
params.update(kw) #上面这段代码不是可以用下面这两句写吗。 params.update(defalults) params.update(kw)
``
2、问题
`` engine = _Engine(lambda: mysql.connector.connect(**params)) 这里为什么要用lambda ? 本来这句不就是调用一次mysql.connector.connect方法吗。
The text was updated successfully, but these errors were encountered:
我不是廖雪峰哈, 我说下我的理解。
Sorry, something went wrong.
engine = _Engine(lambda: mysql.connector.connect(**params)) 请问下这个_Engine是从mysql.connector 引用的吗,我看了下没有这个东东
No branches or pull requests
在这个函数中有两点疑问,希望得到雪峰老师的指导
``
for k, v in defaults.iteritems():
params[k] = kw.pop(k, v) # dict.pop(key, default_value) 如果用户未设定,则使用默认值。
``
2、问题
``
engine = _Engine(lambda: mysql.connector.connect(**params))
这里为什么要用lambda ? 本来这句不就是调用一次mysql.connector.connect方法吗。
``
The text was updated successfully, but these errors were encountered: