05 2020 档案

摘要:写日志: #_author:'ZYB' #data:2020/5/23 import nnlog import traceback log = nnlog.Logger('python.log',level='debug',backCount=5,when='D') log.debug('eeee' 阅读全文
posted @ 2020-05-29 10:48 arraon 阅读(201) 评论(0) 推荐(0)
摘要:连接: import pymysql connect = pymysql.connect(host='***.**.*.**', user='jxz', password='******', db='jxz', port=3306, charset='utf8', autocommit=True ) 阅读全文
posted @ 2020-05-22 13:25 arraon 阅读(143) 评论(0) 推荐(0)
摘要:一、函数中如果return是多个参数,只用一个参数接收时,是元组;也可以用多个参数接收,那就是解包 def func(): a = 1 b = 2 c = 3 return a,b,c q,w,e = func() print(func(),type(func()),q,w,e) 输出: (1, 2 阅读全文
posted @ 2020-05-04 23:48 arraon 阅读(226) 评论(0) 推荐(0)