def mix(a=1, b=2, c=3):
return a * 10 + b * 20 + c * 30
print(mix())
print(mix(c=4, b=5, a=6))
print(mix(4, 5, 6))
140
280
320
def mix(a=1, b=2, c=3):
return a * 10 + b * 20 + c * 30
print(mix())
print(mix(c=4, b=5, a=6))
print(mix(4, 5, 6))
140
280
320
本文标题:Python note
本文链接:https://www.haomeiwen.com/subject/xiahtctx.html
网友评论