摘要: #!/usr/bin/env python#-*- coding:utf-8 -*-# @File:write_tide_json# @Author:moucong# @Datetime:2018/3/29 18:15# @Software: PyCharmimport jsonimport osi 阅读全文
posted @ 2018-03-30 15:36 Moucong 阅读(715) 评论(0) 推荐(0) 编辑
摘要: import jsonimport osimport datetimeimport timeimport linecache #10分钟风速时间格式转化def ws_time_format(JDtime,times,hour_time,minute_time): JDtime = JDtime + 阅读全文
posted @ 2018-03-30 15:31 Moucong 阅读(35919) 评论(0) 推荐(0) 编辑
摘要: < json文件 >{ "DCN":{ "filename":"at0101.07422", "variable":"气温", "Highest_temp":"最高气温", "Lowest_temp":"最低气温" }, "DMD":{ "filename":"bp0101.07422", "var 阅读全文
posted @ 2018-03-30 15:24 Moucong 阅读(5771) 评论(0) 推荐(0) 编辑
摘要: import reimport jsonfrom pymongo import MongoClientimport os# def Write_json(data):# open_Json = open("1.json", "a")# Write_json = json.dumps(data)# o 阅读全文
posted @ 2018-03-18 20:45 Moucong 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 原文:http://yanmin.in/blog/1488162943.html 1.使用mongo命令将数据库删除: use db_name; db.dropDatabase() use db_name; db.dropDatabase() 2.导入(指定文件夹)数据: linux命令:mongo 阅读全文
posted @ 2018-03-17 16:19 Moucong 阅读(229) 评论(0) 推荐(0) 编辑
摘要: from urllib.parse import urljoinimport urllib.requestfrom bs4 import BeautifulSoupimport timeimport osimport reimport errnodef mkdir_p(path): # 递归创建多级 阅读全文
posted @ 2018-03-13 15:08 Moucong 阅读(424) 评论(0) 推荐(0) 编辑
摘要: python3.5 安装的时候会有很多可选参数,这些参数是默认不提供的,可是当我们想通过pip install、esay_install 的时候却发现无法安装; 在这种情况下,我们只能从新安装python.并在编译的时候添加到可选参数, 1 安装Sqlite3 1.1 下载SQLTLE3: http 阅读全文
posted @ 2018-03-03 16:17 Moucong 阅读(5942) 评论(0) 推荐(0) 编辑
摘要: import requestsimport refrom functools import reduceimport jsonimport base64import timeimport os 安装的python包 pwd = base64.b64decode("") #64位解码loginMeta 阅读全文
posted @ 2018-02-05 15:30 Moucong 阅读(1749) 评论(0) 推荐(0) 编辑
摘要: from html.parser import HTMLParserimport jsonimport refrom openpyxl import Workbookfrom openpyxl.utils import get_column_letterfrom itertools import i 阅读全文
posted @ 2018-02-05 15:29 Moucong 阅读(1848) 评论(0) 推荐(0) 编辑
摘要: import osimport shutildef copyPDF(): addressPDF = "E:/totally/FinancePDF/" f_list = os.listdir(addressPDF) n=0 for fileNAME in f_list: if os.path.spli 阅读全文
posted @ 2018-02-05 15:24 Moucong 阅读(7662) 评论(0) 推荐(0) 编辑