摘要: 1 def connect(ip,port,username,passwd): 2 print('ip:',ip) 3 print('port:',port) 4 print('username:',username) 5 print('passwd:',passwd) 6 7 l = ['127.0.0.1',3306,'root','123456'] 8 tup = ('127.0.0.1', 阅读全文
posted @ 2019-10-29 17:34 维特布朗尼 阅读(194) 评论(0) 推荐(0)
摘要: 1 def send_report(*args):# 可变参数,参数组 2 print(args) 3 # *args不是必填参数,不限制参数个数,传递多个参数时,放在一个元组里面 4 send_report() 5 send_report(1) 6 send_report(1,2,3) 7 8 def send_mail(**kwargs):# 关键字参数,不是必填参数,返回一个字典,参参数时必 阅读全文
posted @ 2019-10-29 17:08 维特布朗尼 阅读(87) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-29 15:19 维特布朗尼 阅读(146) 评论(0) 推荐(0)