码迷,mamicode.com
首页 >  
搜索关键字:file python3    ( 63124个结果)
<<Python基础教程>>学习笔记 | 第11章 | 文件和素材
打开文件 open(name[mode[,buffing]) name: 是强制选项,模式和缓冲是可选的 #如果文件不在,会报下面错误: [python] view plaincopyprint? >>> f = open(r'D:\text.txt','r') Traceback (most recent call last): File "", line 1, in IOError: [Errno 2] No such file or direc...
分类:编程语言   时间:2014-10-01 03:25:00    阅读次数:516
Saving Key-Value Sets
If you have a relatively small collection of key-values that you'd like to save, you should use the SharedPreferences APIs. ASharedPreferences object points to a file containing key-value pairs an...
分类:其他好文   时间:2014-10-01 02:51:10    阅读次数:232
Saving Files
Android uses a file system that's similar to disk-based file systems on other platforms. This lesson describes how to work with the Android file system to read and write files with the FileAPIs....
分类:其他好文   时间:2014-10-01 02:01:01    阅读次数:339
zabbix监控mysql(perl)
1.yuminstallperl-libwww-perlyuminstallperl-File-Whichyuminstallperl-DBD-MySQLyuminstallperl-Digest-SHA1yuminstallperl-Time-HiResyuminstallperl-Crypt-SSLeay2.测试#!/usr/bin/perl-wuseDBI;my$database="mysql";my$hostname="localhost";my$data_source="DBI:mysql:$d..
分类:数据库   时间:2014-10-01 00:41:10    阅读次数:329
学习Android的一些笔记
1.如何在Eclipse开一个已存在的android工程?其打开操作是:File->Import->General->Existing Projects into Workspace,然后选择工程所在根目录(Select root directory),按“Finish”按钮即可注意:要是在work...
分类:移动开发   时间:2014-09-30 23:48:50    阅读次数:205
文件编程file_copy.c
//Linux文件编程 — — 系统文件调用中的file_cp.c//待修改。。。 1 #include 2 #incldue 3 #include 4 #include 5 6 #define BUFFSIZE 1024 7 8 int main(int argc, char *arg...
分类:其他好文   时间:2014-09-30 23:05:00    阅读次数:222
Java编码的问题
由于JDK是国际版的,在编译的时候,如果我们没有用-encoding参数指定我们的Java源程序的编码格式,则javac.exe首先获得我们操作系统默认采用的编码格式,也即在编译java程序时,若我们不指定源程序文件的编码格式,JDK首先获得操作系统的file.encoding参数(它保存的就是操作...
分类:编程语言   时间:2014-09-30 18:37:59    阅读次数:266
autoit 处理文件上传弹出框,并在JAVA中调用
File file2 = new File(".");String command = file2.getCanonicalPath()+"\\resources\\pages\\testdata\\"+"UploadFile.exe";//exe文件存放的绝对路径Runtime run = Run...
分类:编程语言   时间:2014-09-30 18:17:29    阅读次数:416
配置Log4j(非常具体)
来自: http://www.blogjava.net/zJun/archive/2006/06/28/55511.htmlLog4J的配置文件(Configuration File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,能够创...
分类:其他好文   时间:2014-09-30 17:50:39    阅读次数:395
Linux Add a Swap File
http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/Procedure To Add a Swap File Under LinuxYou need to use the dd command to create swap file. T...
分类:系统相关   时间:2014-09-30 16:59:09    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!