码迷,mamicode.com
首页 >  
搜索关键字:filepath    ( 875个结果
模拟管道,实现功能:tail -f access.log | grep '404'
import timedef tail(filepath): with open(filepath,'rb') as f: f.seek(0,2) while True: line=f.readline() if line: yield line else: time.sleep(0.05)def ...
分类:数据库   时间:2018-01-02 23:13:07    阅读次数:196
C# 用sql语句保存excel
private static void SaveExcel(string filePath,DataSet dt) { bool hasHeaders = false; string HDR = hasHeaders ? "Yes" : "No"; string strConn; ... ...
分类:数据库   时间:2018-01-02 11:32:09    阅读次数:219
cocos2dx 同时快速播放停止多个音效闪退问题
闪退位置为 iter->second(id, *AudioEngine::_audioIDInfoMap[id].filePath); 发现应该是是找不到对应的id 暂时加了个判断处理了下 int id = audioId;auto it = AudioEngine::_audioIDInfoMap ...
分类:其他好文   时间:2017-12-26 12:03:30    阅读次数:208
jar包读取配置文件
读取jar包内配置文件: Properties config = new Properties(); config.load(in); 读取jar包外配置文件: Properties config = new Properties(); String filePath = System.getPro ...
分类:编程语言   时间:2017-12-25 13:38:43    阅读次数:150
微信小程序 - 上传头像
// 上传文件 function uploadFile(url, filePath, name, formData, cb) { wx.uploadFile({ url: 'https://www.lenfshion.com/projectmng/' + url, filePath: filePat ...
分类:微信   时间:2017-12-24 12:43:29    阅读次数:269
Selenium脚本之基本元素常用方法
页面基本元素:1.图片上传方法   private static void fileUpload(WebDriver driver, String s, String filepath) {        WebElement file = driver.findElement(By.name(s));    &nbs
分类:其他好文   时间:2017-12-23 19:06:03    阅读次数:91
C#将Excel中的数据转换成DataSet
使用C#在不借助第三方插件的情况下将Excel中的数据转换成DataSet /// <summary> /// EXCEL数据转换DataSet /// </summary> /// <param name="filePath">文件全路径</param> /// <param name="sear ...
分类:Windows程序   时间:2017-12-14 04:11:38    阅读次数:322
C#文件处理File.Create(FilePath)相关报错
C#使用File.Create(FilePath)创建文件后,再次处理该文件报错。怎么解决? 报错xxxxxxxx...because it is being used by another process.解决方法: File.Create(FilePath).Close();创建完后关闭文件即可 ...
分类:Windows程序   时间:2017-12-13 20:08:26    阅读次数:197
http文件导出写文件
jxl ReadExcel 将xlsx 用excle打开另存为为xls 读取excle public class ReadExcel{ private String filePath; private List<String[]> list = new ArrayList(); public Rea ...
分类:Web程序   时间:2017-12-12 15:13:27    阅读次数:244
Qt Write File
Write to File with Qt Write Binary to File with Qt Write plain Text to File with Qt void WritePlainTextToFile(QString plainText, QString filePath) { Q ...
分类:其他好文   时间:2017-12-09 13:15:13    阅读次数:224
875条   上一页 1 ... 26 27 28 29 30 ... 88 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!