摘要:
1 import json 2 3 import requests 4 import urllib3 5 from pymongo import MongoClient 6 7 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 8 9 client = MongoClient('loca... 阅读全文
posted @ 2018-12-13 16:36
ronle
阅读(161)
评论(0)
推荐(0)
摘要:
1 import pymysql 2 3 4 def main(): 5 conn = pymysql.connect(host="localhost", port=3306, user="", password="", 6 database="all_ip", charset="utf8") 7 8 c... 阅读全文
posted @ 2018-12-13 16:35
ronle
阅读(148)
评论(0)
推荐(0)
摘要:
1 #!usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 from redis import * 5 6 if __name__ == '__main__': 7 # 创建一个StrictRedis对象,链接redis数据库 8 # sr = StrictRedis(host='localhost', port=... 阅读全文
posted @ 2018-12-13 16:33
ronle
阅读(154)
评论(0)
推荐(0)

浙公网安备 33010602011771号