05 2020 档案

python爬虫初步认知
摘要:import requests #导入requests包 from bs4 import BeautifulSoup url='http://www.cntour.cn/' strhtml=requests.get(url) content = strhtml.text print(content) 阅读全文

posted @ 2020-05-18 14:51 不不田鼠 阅读(160) 评论(0) 推荐(0)

oracle数据库操作(未封装)
摘要:#-*- coding:utf-8 -*- import cx_Oracle import os os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8' #读取数据中文全是问号的问题 conn = cx_Oracle.connect('用户名 阅读全文

posted @ 2020-05-15 16:47 不不田鼠 阅读(98) 评论(0) 推荐(0)

oracle数据库操作(结合读取.ini文件操作)
摘要:# -*- coding:utf-8 -*- import cx_Oracle from Util import readConfig from Util.log import Logger Config = readConfig.ReadConfig() class ConfigOracle: d 阅读全文

posted @ 2020-05-15 16:19 不不田鼠 阅读(371) 评论(0) 推荐(0)

读取xml文件的方法
摘要:1.xml文件【例子】 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <page> <database name="CREDIT"> <table name="customter"> <sql id="001"> select t.*, 阅读全文

posted @ 2020-05-15 12:33 不不田鼠 阅读(484) 评论(0) 推荐(0)

线程练习
摘要:# -*- coding: utf-8 -*- import json import threading import time import requests from openpyxl import load_workbook file ="data_xiancheng.xlsx" #要执行的文 阅读全文

posted @ 2020-05-14 10:13 不不田鼠 阅读(105) 评论(0) 推荐(0)