码迷,mamicode.com
首页 >  
搜索关键字:file python3    ( 63124个结果)
C#获得文件夹下文件名
String path = @"X:\xxx\xxx"; //第一种方法 var files = Directory.GetFiles(path, "*.txt"); foreach (var file in files) Console.WriteLine(...
分类:其他好文   时间:2014-09-05 15:47:51    阅读次数:123
Starting MySQL...The server quit without updating PID file [失败]lib/mysql/localhost.localdomain.pid).
重启了一下服务器,启动后就报以下错误了:Starting MySQL...The server quit without updating PID file [失败]lib/mysql/localhost.localdomain.pid).纠结了很久没找到解决办法,后来突然想到修改了mysql的配置文件“/usr/my.cnf”之前配置默认编码,在配置文件中添加了“default-characte...
分类:数据库   时间:2014-09-05 14:27:01    阅读次数:344
asp.net mvc下文件上传
典型的文件上传表单 文件上传操作public ActionResult Index(HttpPostedFileBase file)if (file != null){ string strpath = Server.MapPath("~/files/"+ file.FileName); //获.....
分类:Web程序   时间:2014-09-05 14:11:51    阅读次数:195
限制USB延迟启动
阻止用户从未经授权的位置安装设备驱动程序。 组策略 。。。too long too see directly.what determins when a drivers i s load.specifying driver laod order./ load order group for file...
分类:其他好文   时间:2014-09-05 14:09:41    阅读次数:222
android如何将开源项目引入
以引入.pulltorefresh为例 下载zip,解压到桌面打开eclipse,File-Import-Existing Android Code Into Workspace选中library文件,导入到eclipse中打开此library,右键library,properties-Android-Library-勾选Is Library 打开你的程序后,右键你的主程序,prope...
分类:移动开发   时间:2014-09-05 13:03:01    阅读次数:204
Android中的延时执行
本来一直用java中的timer: new Timer().schedule(new TimerTask() { @Override public void run() { ... } },2000); 不知道怎么回事,有时候执行不了。后来看网上有人说更推荐用Android的一种方式: new Handler().postDelayed(new Runnabl...
分类:移动开发   时间:2014-09-05 13:01:41    阅读次数:246
《unix环境高级编程》 读书笔记 (1)
近来读书,做些笔记,来年好翻翻。 本文所使用的操作系统为 CentOS7.0,如果不想装双系统的可以装虚拟机,可以参考这里: http://blog.csdn.net/alex_my/article/details/38142229 当然啦,直接装个再好不过了。 File I/O 1 file descriptor //...
分类:其他好文   时间:2014-09-05 12:59:41    阅读次数:331
android-环境配置
1.下载jdk2.配置环境变量 (1)JAVA_HOME =C:\Program Files (x86)\Java\jdk1.8.0_11(2)classpath =.;%JAVA_HOME%\lib(3)Path =%JAVA_HOME%\bin;%JAVA_HOME%jre\bin---%Sys...
分类:移动开发   时间:2014-09-05 12:52:01    阅读次数:176
20140905bug
shell脚本: syntax error near unexpected token elseif [ -f "$impDataFile" -a -f "$tagFile" ] ;then else #一开始左边缺了空格 echo "file is not exists"fi
分类:其他好文   时间:2014-09-05 12:51:01    阅读次数:216
监听SharedPreference变化的方法
/**      * A listener for all the change in the preference file. It is used to maintain the global state of the application.      */     private class PreferenceListener implements SharedPreference...
分类:其他好文   时间:2014-09-05 11:25:31    阅读次数:219
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!