码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
python 实现二分法查找
二分查找图二叉树:代码#!/usr/bin/python#-*-coding:utf-8-*-#----------------------------------------------------------------------------------------# to_do : bin....
分类:编程语言   时间:2014-06-09 23:06:48    阅读次数:295
使用python编写appium用例
安装Python依赖 pip3.4 install nose pip3.4 install selenium pip3.4 install Appium-Python-Client 运行测试用例android_contacts.py import os import unittest from appium import webdriver from time import slee...
分类:移动开发   时间:2014-06-08 05:55:17    阅读次数:482
python数据结构与算法 39 树的遍历
树的遍历 在学习完成树的基本结构以后,我们开始研究一些树的应用模式。访问树的全部节点,一般有三种模式,这些模式的不同之处,仅在于访问节点的顺序不同。我们把这种对节点的访问称为“遍历”,这三种遍历模式叫做前序、中序和后序。下面我们对遍历模式作更仔细的定义,同时研究使用这延续模式的例子。 前序遍历...
分类:编程语言   时间:2014-06-08 05:49:56    阅读次数:323
基本的语法
2 基本的语法在学习Python其它知识之前,先理解几个基本语法概念,这样才可以理解它的代码是怎么样排列组合的,否则编辑出来的文本文件并不能叫做程序,因为Python的运行环境并不能对它进行解释执行,没有正确的结果输出。2.1 大小写区分在Python程序中,对于每一个变量的名称都是大小写区分的,比如My和my是两个不同的变量。2.2 空格和制表符在编写程序时,都需要对程序进行排版,否则看起来不清...
分类:其他好文   时间:2014-06-08 05:35:46    阅读次数:225
Subsets II
题目 Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not c...
分类:其他好文   时间:2014-06-08 05:32:21    阅读次数:196
python实现表单中插入表情符号
效果: 点表情图,在表单中表示为[左晃晃]。 见过一个使用jquery来模拟新浪微博的表情插入。 使用Python2.7和Django1.6来实现。 看书好长时间,但是自己来写,发现真的没记住。 方法描述: 1、浏览器页面,使用js脚本把表情符号添加到Textarea; 2、Views里面使用正则把记录里的[]内容替换为图片,渲染到浏览器。...
分类:编程语言   时间:2014-06-08 04:06:26    阅读次数:461
[LeetCode] Remove Element [20]
题目 Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn't matter what you leave beyond the new length. 原题链接(点我) 解题思路 给一个数组和一个数字,移除该数字在数组中所有出现的地方。 这是一个非常简单的题目,应...
分类:其他好文   时间:2014-06-08 04:05:50    阅读次数:284
projecteuler---->problem=23----Non-abundant sums
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number. For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means th...
分类:其他好文   时间:2014-06-08 04:05:14    阅读次数:315
Django - Django框架 简介
Django框架 简介本文地址: http://blog.csdn.net/caroline_wendy/article/details/29172271 1. 介绍Django是一个开放源代码的Web应用框架, 由Python写成.采用了MVC的软件设计模式, 即模型M, 视图V和控制器C.它最初是被开发来用于管理劳伦斯出版集团旗下的一些以新闻内容为主的网站的, 并于2005年7月在BSD许可证下发布.这套框架是以比利时的吉普赛爵士吉他手Djan...
分类:其他好文   时间:2014-06-08 04:02:20    阅读次数:397
Subsets
题目 Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. ...
分类:其他好文   时间:2014-06-08 04:01:05    阅读次数:240
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!