python函数位置实参传参

#!/usr/bin/python
#coding=utf-8
#好好学习,天天向上
def describe_pet(type,name):
    print(f"i have a {type};")
    print(f"my {type}'s name is {name}!")
describe_pet("dog","peter")

  

原文地址:https://www.cnblogs.com/tigergaonotes/p/14238160.html