码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
Python按行读文件对比
1. 最基本的读文件方法:# File: readline-example-1.pyfile = open("sample.txt")while 1: line = file.readline() if not line: break pass # do something 一行一行得从文件读数据....
分类:编程语言   时间:2014-05-29 01:34:30    阅读次数:402
关于眼睛的一切
Today’s program is all about eyes.When it comes to relationships, people’s eyes can be "a window into their hearts."This means that their eyes can tel...
分类:其他好文   时间:2014-05-28 23:52:27    阅读次数:392
systemtrace抓取方式
只需以下两行命令:$ cd android-sdk/platform-tools/systrace$ python systrace.py --time=10 -o mynewtrace.html sched gfx view wm--time=10 -----------------trace运行...
分类:其他好文   时间:2014-05-28 22:26:08    阅读次数:1421
Python统计nginx脚本信息
1 #!/usr/bin/env python 2 # -*- coding: utf-8 -*- 3 import urllib2 4 import json 5 import subprocess 6 import threading 7 8 #统计10个最长访问的ip 9 ip_raw =.....
分类:编程语言   时间:2014-05-28 21:47:39    阅读次数:386
python获取两个dict的不同
参数: dict1, dict2需求:如果dict1和dict2中有不同的key,那么返回这个(key, dict1[key]);如果dict1和dict2中有相同的key,但是value不同,返回这个(key, dict1[key])实现:def dict_different_data(first...
分类:编程语言   时间:2014-05-28 21:11:48    阅读次数:385
python正则表达式元字符
分类:编程语言   时间:2014-05-28 17:00:28    阅读次数:263
leetcode -- 3sum
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:其他好文   时间:2014-05-28 16:47:30    阅读次数:308
python学习之操作mysql
欢迎点击个人博客http://www.iwangzheng.com/刚开始学python,所以很多代码都需要在ipython里尝试一下。今天记录的是最基本的操作mysql数据库。写数据库连接操作的时候,仿佛回到了当年在前两家公司写asp.net的感觉。1.首先在mysql数据库里新建个数据库crea...
分类:数据库   时间:2014-05-28 16:46:14    阅读次数:403
CAGradientLayer实现图片渐变透明效果
CAGradientLayer实现图片渐变透明效果要实现的效果如下:源码://// RootViewController.m// CAGradientLayer//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootVi...
分类:其他好文   时间:2014-05-28 14:30:01    阅读次数:276
iOS开发百度地图常见问题及解决办法
1.64bit模拟器不能正常工作解决:请将Xcode5 的 Project -> Edit Active Target -> Build Settings -> Linking -> Other Linker Flags中的"-ObjC"修改为"-all_load"2.程序死在_mapView = ...
分类:移动开发   时间:2014-05-28 13:39:24    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!