摘要:
1、 >>> def a(first,middle,last): ## 函数定义了三个形参 full = f"{first} {middle} {last}" return full.title() >>> name = a("aaa","bbb","ccc") >>> print(name) Aa 阅读全文
posted @ 2021-03-09 22:11
小鲨鱼2018
阅读(163)
评论(0)
推荐(0)
摘要:
1、 >>> def a(x,y,z): print(x + y + z) >>> a(2,3,4) 9 >>> a(2,3) ## 缺少对应的实参 Traceback (most recent call last): File "<pyshell#317>", line 1, in <module 阅读全文
posted @ 2021-03-09 11:40
小鲨鱼2018
阅读(95)
评论(0)
推荐(0)

浙公网安备 33010602011771号