码迷,mamicode.com
首页 >  
搜索关键字:file python3    ( 63124个结果)
文件流
try { //从指定文件中引入程序的 输入流 FileInputStream fins = new FileInputStream(fileName); //缓存空间 byte[] cache = new byte[fins.available()]; //文件...
分类:其他好文   时间:2014-07-10 10:08:30    阅读次数:233
vi模式
保存命令按ESC键 跳到命令模式,然后::w 保存文件但不退出vi:w file 将修改另外保存到file中,不退出vi:w! 强制保存,不推出vi:wq 保存文件并退出vi:wq! 强制保存文件,并退出viq: 不保存文件,退出vi:q! 不保存文件,强制退出vi:e! 放弃所有修改,...
分类:其他好文   时间:2014-07-10 00:37:06    阅读次数:291
<asp:FileUpload ID="FileUpload1" runat="server" />不上传东西问题
不上传东西 Request.Files.Count也不为零,所以要在后面再加上一个条件Request.Files[0].ContentLength!=0if (Request.Files.Count != 0 && Request.Files[0].ContentLength!=0)这样当不上传东西...
分类:Web程序   时间:2014-07-10 00:21:25    阅读次数:185
eclipse升级,导入旧版eclipse的插件[转]
启动 eclipse.菜单 File => import … => Install => From existing Installation, 点确定, 就会弹出对话框, 浏览选择 ~/.eclipse 下 3.7的目录, 就会列出所有曾经安装在3.7上可以导入的插件.选择好要导入的插件, 点击 ...
分类:系统相关   时间:2014-07-10 00:08:20    阅读次数:309
python logging system
官方教程:https://docs.python.org/2/library/logging.html1. 用法1import loggingimport logging.handlersLOG_FILE = 'tst.log'handler = logging.handlers.RotatingF...
分类:编程语言   时间:2014-07-09 23:45:45    阅读次数:389
[leetcode] Simplify Path
Given an absolute path for a file (Unix-style), simplify it.
分类:其他好文   时间:2014-07-08 00:11:24    阅读次数:177
Python中dict详解
yangyzhPython中dict详解python3.0以上,print函数应为print(),不存在dict.iteritems()这个函数。在python中写中文注释会报错,这时只要在头部加上# coding=gbk即可#字典的添加、删除、修改操作dict = {"a" : "apple", ...
分类:编程语言   时间:2014-07-07 22:49:30    阅读次数:261
InnoDB: Operating system error number 87 in a file operation. 错误87的解决方法
InnoDB: Operating system error number 87 in a file operation. 错误87的解决方法140628 8:10:48 [Note] Plugin 'FEDERATED' is disabled.140628 8:10:48 InnoDB: The...
分类:数据库   时间:2014-07-07 21:36:13    阅读次数:810
Matlab中fscanf的用法
今天要用到Matlab 中的fscanf函数,上网找了一下终于明白了,现在自己写一下体会:下面是fscanf()的主要应用syntaxA = fscanf(fileID, format)A = fscanf(fileID, format, sizeA)[A, count] = fscanf(...)...
分类:其他好文   时间:2014-07-07 20:56:10    阅读次数:452
Smarty模版
smarty.inc.phptemplate_dir = ROOT_PATH.'/templates/'; //编译目录 $_smarty->compile_dir = ROOT_PATH.'/templates_c/'; //配置变量目录 $_smarty->config_dir = ROOT_P...
分类:其他好文   时间:2014-07-07 20:02:59    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!