码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
LeetCode: Permutations II 题解
Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the following unique perm...
分类:其他好文   时间:2014-06-18 09:33:28    阅读次数:181
Photoshop CS4 启动弹出许可协议
win7:删除1、C:\Users\All Users\FLEXnet\adobe_00080000_tsf.dataWinXP:(c:/DocumentsandSettings/AllUsers/ApplicationData/FLEXnet\adobe_00080000_tsf.data)2、C...
分类:其他好文   时间:2014-06-18 08:37:51    阅读次数:194
传递闭包
传递闭包: import numpy A0 = numpy.array( [ [False, True, False, False], [False, False, False, True], [False, False, False, False], [True, False, True,...
分类:其他好文   时间:2014-06-18 07:52:22    阅读次数:212
LeetCode OJ平台上Sort Colors题目算法探讨
原题如下,意思就是说无序数组(由0,1,2组成),一遍扫描,把数组整理成0,1,2这样的序列。 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red,...
分类:其他好文   时间:2014-06-18 07:12:43    阅读次数:174
js css 实现简易计算器
JS+CSS3实现计算器特效 C 7 8 9 + 4 5 6 - 1 2 3 ÷ 0 . = x // Get all the keys from document var keys = document.querySelectorAll('#calculator...
分类:Web程序   时间:2014-06-18 06:37:23    阅读次数:271
【Python】用Python的“结巴”模块进行分词
之前都是用计算所的分词工具进行分词,效果不错但是比较麻烦,最近开始用Python的“结巴”模块进行分词,感觉非常方便。这里将我写的一些小程序分享给大家,希望对大家有所帮助。 下面这个程序是对一个文本文件里的内容进行分词的程序:test.py #!/usr/bin/python #-*- encoding:utf-8 -*- import jieba ...
分类:编程语言   时间:2014-06-18 06:00:59    阅读次数:412
LeetCode: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. For example, ...
分类:其他好文   时间:2014-06-18 00:39:26    阅读次数:301
Python 图论工具
networkx: 一个用Python语言开发的图论与复杂网络建模工具, 内置了常用的图与复杂网络分析算法, 可以方便的进行复杂网络数据分析、仿真建模等工作。 依赖工具: numpy  pyparsing  datautil  matplotlib  networkx  采用随机图做个实验: from random im...
分类:编程语言   时间:2014-06-18 00:32:52    阅读次数:321
【Python】Python获取命令行参数
有时候需要用同一个Python程序在不同的时间来处理不同的文件,此时如果老是要到Python程序中去修改输入、输出文件名,就太麻烦了。而通过Python获取命令行参数就方便多了。下面是我写得一个小程序,希望对大家有所帮助。 比如下面一个程序test.py是通过接受命令行两个参数,并打印出这两个参数。 import sys #需导...
分类:编程语言   时间:2014-06-18 00:28:16    阅读次数:372
LeetCode:Remove Element
题目链接 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...
分类:其他好文   时间:2014-06-17 23:45:10    阅读次数:373
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!