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'
阅读全文
摘要:连接: import pymysql connect = pymysql.connect(host='***.**.*.**', user='jxz', password='******', db='jxz', port=3306, charset='utf8', autocommit=True )
阅读全文
摘要:一、函数中如果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
阅读全文

浙公网安备 33010602011771号