摘要: 读excel--xlrd book = xlrd.open_workbook('text.xlsx') 打开excel sheet = book.sheet_by_index(0)根据顺序获取sheet页面 sheet=book.sheet_by_name('test')根据sheet页名称获取页面 阅读全文
posted @ 2018-11-05 18:40 hedy_x 阅读(125) 评论(0) 推荐(0)
摘要: OP_MYSQL 1.连接数据库 conn=pymysql.connect( ) 2.建立游标 cur=pymysql.cursors(cursors = pymysql.cursors.DictCursor) 3.执行sql cur.execute(sql) 4.获取结果 cur.fetchall 阅读全文
posted @ 2018-11-05 16:19 hedy_x 阅读(231) 评论(0) 推荐(0)
摘要: 主要功能: 暂代替第三方接口, 辅助测试,用来代替没有开发好的接口 查看数据 flask 模块 第三方模块 server= flask.Flask(__name__) 把python文件当成一个server 在函数上方写:@server.route('/get_user',methods=['get 阅读全文
posted @ 2018-11-05 15:36 hedy_x 阅读(98) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-11-05 15:01 hedy_x 阅读(1) 评论(0) 推荐(0)