# url2有默认参数 def dis_str(url1,url2= "http://c.bg.net/python/"): print("url1:",url1) print("url2:",url2)
def person(name, gender, age=6, city='Beijing'): print('name:', name) print('gender:', gender) print('age:', age) print('city', city)
# url2有默认参数 def dis_str(url1,url2= "http://c.bg.net/python/"): print("url1:",url1) print("url2:",url2)
def person(name, gender, age=6, city='Beijing'): print('name:', name) print('gender:', gender) print('age:', age) print('city', city)