pull/119/merge
EpicMo 2023-03-24 09:59:36 +08:00 committed by GitHub
commit 57df79b02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 23 deletions

View File

@ -54,7 +54,7 @@ print_user_info( '三点水' , 25 )
默认值参数就这样结束了吗?
还没有的,细想一下,如果参数中是一个可修改的容器比如一个 lsit (列表)或者 dict (字典),那么我们使用什么来作为默认值呢?
还没有的,细想一下,如果参数中是一个可修改的容器比如一个 list (列表)或者 dict (字典),那么我们使用什么来作为默认值呢?
我们可以使用 None 作为默认值。就像下面这个例子一样: