QuestionGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving onlydistinctnumbers from the original list.For example,Given...
分类:
其他好文 时间:
2015-09-16 23:22:02
阅读次数:
233
The below steps recorded my experiences to setup the Apache + PHP + MySql on my Windows 10.1. Download Apache http server from http://www.apachehaus.c...
分类:
数据库 时间:
2015-09-16 23:19:48
阅读次数:
211
1 题目Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space f...
分类:
其他好文 时间:
2015-09-16 23:18:16
阅读次数:
156
1.冒泡排序,相邻位置比较大小,将比较大的(或小的)交换位置def maopao(a): for i in range(0,len(a)): for j in range(0,len(a)-i-1): if a[j]>a[j+1]: temp = a[j+1] a[j+1] = a[j] a[j] ...
分类:
编程语言 时间:
2015-09-16 23:13:58
阅读次数:
207
1、在Eclipse或者Myeclipse的java工程中导入Jython.jar包。http://down.51cto.com/data/20945972、编写读取Python的工具类。importorg.python.util.PythonInterpreter;
importjava.io.FileInputStream;
importjava.io.IOException;
importjava.io.InputStream;
importjava.util..
分类:
编程语言 时间:
2015-09-16 20:15:38
阅读次数:
218
#!/usr/bin/python#-*-coding:utf-8-*-importConfigParsercf=ConfigParser.ConfigParser()cf.read("cfg.txt")#获取所有sections。也就是将配置文件中所有“[]”读取到列表中:s=cf.sections()print‘section:‘,s#获取指定section的options。即将配置文件某个section内key读取到..
分类:
其他好文 时间:
2015-09-16 20:13:51
阅读次数:
131
一天,需要在Linux服务器上面安装一个rpm包,结果运行yum命令的时候无论如何都会报错,如下:[root@testbin]#yum
TherewasaproblemimportingoneofthePythonmodules
requiredtorunyum.Theerrorleadingtothisproblemwas:
Nomodulenamedyum
Pleaseinstallapackagewhichprovidesthi..
分类:
编程语言 时间:
2015-09-16 20:12:58
阅读次数:
194
继续学习python的web模块,urlparse是一个比较简单的模块,主要是用来解析URL字符串的1urlparse简介python使用urlparse来解析URL字符串主要方法:urlprase次要方法:urljoinurlspliturlunsplit等2urlparse详解urlparse模块主要是把url拆分为6部分,并返回元组。并且可以把拆分..
分类:
编程语言 时间:
2015-09-16 20:11:43
阅读次数:
191
1. 首先访问http://www.python.org/download/去下载python,我用的版本是2.72. 安装时,注意在安装选项上选上把python加到环境变量PATH中3. 安装完毕后,测试python安装是否成功,cmd打开命令行输入 python 命令,如下图即成功了4.下载并安...
分类:
编程语言 时间:
2015-09-16 19:54:12
阅读次数:
241
学习python时思考的一个问题。http://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000/001431752945034eb82ac80a3e64b9bb4929b16eeed1eb9000...
分类:
其他好文 时间:
2015-09-16 19:49:53
阅读次数:
164