1 /* 2 * Copyright (C) 2008 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you ...
分类:
其他好文 时间:
2014-08-12 16:43:54
阅读次数:
319
文件处理f= file('poem.txt', 'w')# open for 'w'riting模式可以为读模式('r')、写模式('w')或追加模式('a')f.write(poem) # write text to filef.close()f = file('poem.txt')# if no...
分类:
编程语言 时间:
2014-08-12 16:37:34
阅读次数:
203
1、微信开放平台https://open.weixin.qq.com/cgi-bin/frame?t=resource/res_main_tmpl&lang=zh_CN&target=res/app_wx_login2、微信公众平台开发者文档http://mp.weixin.qq.com/wiki/...
分类:
微信 时间:
2014-08-12 16:26:14
阅读次数:
405
今天看到群里哥们发了一个需求,如下:“如何批量检测一批主机的端口,是否存在,端口都是对外的”,感觉不难,就用py写了个小脚本,有问题的地方,还望大家指出,谢谢!#!/usr/bin/envpython
importsocket
file="C:\Users\Administrator\py_demo\ip.txt"
port=80
a=open(fil..
分类:
编程语言 时间:
2014-08-12 13:57:44
阅读次数:
262
使用MAT比较多个heap dump文件 调试内存泄露时,有时候适时比较2个或多个heap dump文件是很有用的。这时需要生成多个单独的HPROF文件。下面是一些关于如何在MAT里比较多个heap dumps的内容(有一点复杂):1. 第一个HPROF 文件(usingFile > Open Heap Dump ).2. 打开Histogram view.图1. Histogra...
分类:
其他好文 时间:
2014-08-12 13:39:24
阅读次数:
183
This chapter explains how to use the FileChooser class to enable users to navigate the file system. The samples provided in this chapter explain how to open one or several files, configure a file
ch...
分类:
编程语言 时间:
2014-08-12 10:25:23
阅读次数:
491
android动画学习转载自:http://www.open-open.com/lib/view/open1329994048671.html3.0以前,android支持两种动画模式,tween animation,frame animation,在android3.0中又引入了一个新的动画系统:...
分类:
移动开发 时间:
2014-08-11 20:58:52
阅读次数:
325
一般情况下,使用Ajax提交的参数多是些简单的字符串,可以直接使用GET方法将要提交的参数写到open方法的url参数中,此时send方法的参数为null。例如 :var url = "login.jsp?user=XXX&pwd=XXX";xmlHttpRequest.open("GET",ur....
分类:
其他好文 时间:
2014-08-11 20:47:03
阅读次数:
195
平常 ServiceHost host =new ServiceHost(***); host.Open(); 都没有问题,今天突然出现个这问题,记录一下 “System.ServiceModel.Diagnostics.TraceUtility”的类型初始值设定项引发异常。 查看详细信息是说“配置...
分类:
其他好文 时间:
2014-08-11 20:41:42
阅读次数:
169
VS2010下Cannot find or open the PDB file 问题的解决...
分类:
数据库 时间:
2014-08-11 17:47:12
阅读次数:
212