Python6--函数

定义函数 四种状况: def 函数名():         pass def 函数名():         return xxx def 函数名(参数):         pass def 函数名(参数):         return xxx ()中可传参数以’,’分隔   1 def print_menu():   2     print('-'*40)   3     print('='*4
相关文章
相关标签/搜索