【Python】小问题:positional argument follows keyword argument
问题重现#定义函数defpersonInfo(name,age='18',gender='女',weight='76'):print('名字:'+name)print('年龄:'+age)print('性别:'+gender)print('体重:'+weight)#调用personInfo('东小记',age='20','男',weight='80')原因函数定义的参数列表中必须参数与默认参数不可