码迷,mamicode.com
首页 >  
搜索关键字:python    ( 135041个结果
c/c++栏目中类和对象-4的python实现
# -*- coding: utf-8 -*-"""Created on Wed Jun 04 01:21:31 2014@author: Administrator"""class Analysis: def processExamResults(self): passes =...
分类:编程语言   时间:2014-06-06 13:03:57    阅读次数:354
Python读文件
Linux上用Python实现对文件的读取
分类:编程语言   时间:2014-06-06 10:01:46    阅读次数:261
[leetcode]Distinct Subsequences @ Python
原题地址:https://oj.leetcode.com/problems/distinct-subsequences/题意:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subseq...
分类:编程语言   时间:2014-06-06 09:59:43    阅读次数:330
各种搜索路径问题
python中import一个模块时python解释器的搜索目录顺序:参考python帮助文档The Module Search PathWhen a module namedspamis imported, the interpreter first searches for a built-in...
分类:其他好文   时间:2014-06-06 09:45:30    阅读次数:250
[leetcode]Interleaving String @ Python
原题地址:https://oj.leetcode.com/problems/interleaving-string/题意:Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1...
分类:编程语言   时间:2014-06-06 07:26:08    阅读次数:351
[服务器]WAMP介绍
Windows下的Apache+Mysql+Perl/PHP/Python,一组常用来搭建动态网站或者服务器的开源软件,本身都是各自独立的程序,但是因为常被放在一起使用,拥有了越来越高的兼容度,共同组成了一个强大的Web应用程序平台。随着开源潮流的蓬勃发展,开放源代码的LAMP已经与J2EE和.Ne...
分类:其他好文   时间:2014-06-06 06:42:57    阅读次数:525
简单修改文件名python脚本
import osimport syspath = "D:\emojis"for (path,dirs,files) in os.walk(path): for filename in files: newname = "emoji_"+filename os.re...
分类:编程语言   时间:2014-06-05 20:42:02    阅读次数:391
python基础
操作符:// 用作浮点除法(对结果四舍五入)和 ** 表示乘方 eg: 2**5=32python不支持C中的自增和自减操作,eg: ++i 和 i++ 的结果都为 iraw_input()方法程序输入,所返回的值为 字符串 类型,数值须进行强制类型转换 eg:int()print()会默认为每一行...
分类:编程语言   时间:2014-06-05 18:37:25    阅读次数:299
python版protobuf 安装
1. 下载protobuf源代码(当前最新版本为:2.5.0) #cd /opt #wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz 2. 解压,编译,安装 #tar zx...
分类:编程语言   时间:2014-06-05 17:44:39    阅读次数:4474
python--日期操作
import datetimedatetime有几个常用类:date time datetime timedelta1. 今天日期时间(今天时间)>>> import datetime>>> now = datetime.datetime.now()>>> print now2014-06...
分类:编程语言   时间:2014-06-05 16:47:38    阅读次数:299
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!