def hello():
print(
"这是一个无参数的方法!")
hello();
print(
"")
def helloOne(str):
print(str);
helloOne(
"一个带参数的字符串!")
print(
"")
def helloTwo(age = 35):
print(age)
helloTwo(
50);
def area(width=50,height=60):
return width * height
print(area(
200,
200))
转载于:https://www.cnblogs.com/bilaisheng/p/10210952.html