摘要: 方法(say), 一共用时: 5.004613876342773秒name = wws, age = 25, height = 22 阅读全文
posted @ 2018-12-06 17:13 loooosss 阅读(236) 评论(0) 推荐(0)
摘要: 这两个参数是什么意思:*args,**kwargs 如果我们不确定往一个函数中传入多少参数,或者我们希望以元组(tuple)或者列表(list)的形式传参数的时候,我们可以使用*args(单星号)。如果我们不知道往函数中传递多少个关键词参数或者想传入字典的值作为关键词参数的时候我们可以使用**kwa 阅读全文
posted @ 2018-12-06 11:37 loooosss 阅读(122) 评论(0) 推荐(0)
摘要: def send_email(str): fromaddr = 'xxxxxxxxx@qq.com' # 发送方邮箱 password = 'xxxxxxxxx' # 填入发送方邮箱的授权码 toaddrs = [str] # 收件人邮箱 content = '最新生成内容' textApart = 阅读全文
posted @ 2018-12-05 17:55 loooosss 阅读(571) 评论(0) 推荐(0)
摘要: file_dir = os.path.abspath('.') + "/MarkCoin"def zip_ya(): L = [] for root, dirs, files in os.walk(file_dir): for file in files: if os.path.splitext(f 阅读全文
posted @ 2018-12-05 17:51 loooosss 阅读(284) 评论(0) 推荐(0)