码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
Python集合(set)类型的操作
http://blog.csdn.net/business122/article/details/7541486python的set和其他语言类似,是一个无序不重复元素集,基本功能包括关系测试和消 除重复元素.集合对象还支持union(联合),intersection(交),difference(差...
分类:编程语言   时间:2014-07-19 19:12:50    阅读次数:323
Python basics
The tutorial is from Dan Klein and Pieter AbbeelA good tutorial: https://docs.python.org/2/tutorial/ Table of ContentsInvoking the Interpreter Operato...
分类:编程语言   时间:2014-07-19 00:17:17    阅读次数:372
Python学习笔记_Chapter 4数据保存到文件
1.What For将基于内存的数据存储到磁盘上,达到持续存储。2. HOW方法一: 将数据写到文件中常规的处理方式1 #file.x被打开的文件,model打开文件的方式2 out=open('file.x','model')3 #print将item写入到file指示的文件中,item可以是字符...
分类:编程语言   时间:2014-07-19 00:07:58    阅读次数:205
python yield
描述:遍历数据,数据为数字或者由数字填充的列表不使用生成器1 data = [[1, 2], [3, 2], [5]]2 3 for lst in data:4 for item in lst:5 print item使用生成器1 data = [[1, 2], [3, 2]...
分类:编程语言   时间:2014-07-18 18:32:05    阅读次数:284
【leetcode刷题笔记】Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:其他好文   时间:2014-07-18 18:28:44    阅读次数:231
Python自动化环境搭建
安装配置 Eclipse + PyDev + Robotframework 集成开发环境1.安装JDK安装目录下的jdk-7u17-windows-i586.exe文件(JAVA开发、运行环境)安装完毕后,在系统变量(右键点击计算机->属性->高级系统设置->环境变量->)中找到path变量,在变量...
分类:编程语言   时间:2014-07-18 18:27:22    阅读次数:532
【python】禁止print输出换行的方法
print后用一个逗号结尾就可以禁止输出换行,例子如下>>> i=0>>> while i >> i=0>>> while i < 3: print i, i+=1 0 1 2
分类:编程语言   时间:2014-07-18 18:16:39    阅读次数:574
mysql 打开远程连接
1、在控制台执行 mysql -u root -p mysql,系统提示输入数据库root用户的密码,输入完成后即进入mysql控制台,这个命令的第一个mysql是执行命令,第二个mysql是系统数据名称,不一样的。2、在mysql控制台执行 GRANT ALL PRIVILEGES ON *.* ...
分类:数据库   时间:2014-07-18 17:32:06    阅读次数:203
after_create and after_commit
A relational database, like mysql, provides transactions to wrap several operations in one unit, make them all pass or all fail. All isolation levels ...
分类:其他好文   时间:2014-07-18 17:21:39    阅读次数:287
Python“TypeError: 'NoneType' object is not iterable"的原因
Python“TypeError: 'NoneType' object is not iterable"的原因...
分类:编程语言   时间:2014-07-18 15:14:12    阅读次数:229
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!