上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
  2018年11月20日
摘要: def write_to_file(content): with open('result.txt','a',encoding='utf-8') as f: f.write(content+"\n") 阅读全文
posted @ 2018-11-20 15:10 苏上话 阅读(132) 评论(0) 推荐(0) 编辑
摘要: request 篇: import requests from urllib import parse data={ 'text':'股票价格', 'desp':s } url_data =parse.urlencode(data) url = "https://sc.ftqq.com/6.send 阅读全文
posted @ 2018-11-20 15:05 苏上话 阅读(173) 评论(0) 推荐(0) 编辑
  2018年11月19日
摘要: Server酱 http://sc.ftqq.com 阅读全文
posted @ 2018-11-19 14:27 苏上话 阅读(1115) 评论(0) 推荐(0) 编辑
  2018年11月15日
摘要: 1、前端实现pdf文件在线预览功能 方式一、pdf文件理论上可以在浏览器直接打开预览但是需要打开新页面。在仅仅是预览pdf文件且UI要求不高的情况下可以直接通过a标签href属性实现预览 <a href="文档地址"></a> 2、word、xls、ppt文件在线预览功能 word、ppt、xls文 阅读全文
posted @ 2018-11-15 16:01 苏上话 阅读(1063) 评论(0) 推荐(0) 编辑
  2018年11月14日
摘要: 快速批量导入方法 SqlBulkCopy 1 public string InsertSqlBulkCopy(DataTable dt, string tableName, ref string errinfo) 2 { 3 if (dt.Rows.Count < 1) 4 { 5 return " 阅读全文
posted @ 2018-11-14 15:10 苏上话 阅读(2334) 评论(0) 推荐(1) 编辑
摘要: NPOI helper 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using NPOI.SS.UserModel; 6 using System.IO 阅读全文
posted @ 2018-11-14 15:02 苏上话 阅读(3160) 评论(0) 推荐(0) 编辑
摘要: 需要注意的地方 这里文件域 必须有 id 和name <input type="file" name="file1" id="file1" style="width: 300px" /> 需要引入的js ajaxfileupload.js 做过修改 1 var uploadHelper = { 2 阅读全文
posted @ 2018-11-14 14:27 苏上话 阅读(1882) 评论(0) 推荐(0) 编辑
  2018年11月13日
摘要: 1 # 读写 excel主要通过read_excel 、 to_excel函数实现,除了pandas还需要安装第三方库 xlrd、 openpyxl 2 3 import pandas as pd 4 5 #读取excel 6 df = pd.DataFrame(pd.read_excel('E:\ 阅读全文
posted @ 2018-11-13 15:34 苏上话 阅读(3798) 评论(0) 推荐(0) 编辑
摘要: 新手学编程 1、新手如何学习编程,应该注意什么 如何你正式准备学习编程,对于一个完全陌生的领域,那么肯定有需要注意的地方。可能一个很简单的问题就能让你望而止步,毕竟第一次嘛。2、不要打破砂锅问到底,有些背景知识浅尝辄止即可 刚开始,你只需要对一些基础知识有所了解即可,毕竟你是新手,重点在于环境的搭建 阅读全文
posted @ 2018-11-13 10:29 苏上话 阅读(4228) 评论(0) 推荐(0) 编辑
  2018年11月12日
摘要: windows linux 通用 第一步:通过 cmd 进入到postgresql 安装目录的 bin 下: cd C:\PostgreSQL\pg95\bin 第二步:备份数据库 pg_dump -h localhost -U TPlusPosAdmin -d tegen -f "C:\testd 阅读全文
posted @ 2018-11-12 18:11 苏上话 阅读(1283) 评论(0) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页