小编par*_*378的帖子

如何将参数输入到用户名=密码之类的函数中?

我希望我的代码是这样的,并在代码中使用用户名和密码参数作为字符串。

def check_registration_rules(username='password'):
Run Code Online (Sandbox Code Playgroud)

像这样调用函数:

check_registration_rules(parsap1378='pass')
Run Code Online (Sandbox Code Playgroud)

python

-1
推荐指数
1
解决办法
475
查看次数

标签 统计

python ×1