码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
python--range()函数
1:>>> range(10, 0, -1)[10, 9, 8, 7, 6, 5, 4, 3, 2, 1]>>> range(10)[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]>>> range(0, 10)[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]>>> rang...
分类:编程语言   时间:2014-07-11 19:22:09    阅读次数:192
Python 爬虫—— requests BeautifulSoup
本文记录下用来爬虫主要使用的两个库。第一个是requests,用这个库能很方便的下载网页,不用标准库里面各种urllib;第二个BeautifulSoup用来解析网页,不然自己用正则的话很烦。requests使用,1直接使用库内提供的get、post等函数,在比简单的情况下使用,2利用session...
分类:编程语言   时间:2014-07-11 18:51:34    阅读次数:250
python 中调用windows系统api操作剪贴版
# -*- coding: utf-8 -*-'''Created on 2013-11-26@author: Chengshaoling'''import win32clipboard as w32import win32conclass OperateClipboard(object): def...
分类:编程语言   时间:2014-07-11 18:26:12    阅读次数:245
Vagrant 部署python开发环境
Vagrant简介 Vagrant是一个基于Ruby的工具,用于创建和部署虚拟化开发环境。它使用Oracle的开源VirtualBox虚拟化系统,使用 Chef创建自动化虚拟环境。 在Windows下,也可以方便地使用Linux环境开发程序 官方文档 http://docs.vagrantup.co...
分类:编程语言   时间:2014-07-11 17:59:19    阅读次数:314
Windows平台下如何在C#中调用Python
最近迷上了Python,发现它能够做很多C#无法完成的事情,比如,调用CMD或者在CMD中执行一个exe文件命令行并获得输出的结果。过程简单,处理起来也非常方便,但如果要用C#调用Python文件呢,没关系,你想到的肯定早就有也人想到过。网上Google一下,超级多。索性拿来实践吧。首先要用到的就是...
分类:编程语言   时间:2014-07-11 12:56:24    阅读次数:253
Python入门
没玩过编程? Python语言是免费的,如果你知道从何处开始,它会很容易上手! 本指南将帮助你快速入门。Python是一种清晰而强大的面向对象的编程语言。了解一下Python的一些特征第一步,在你的计算机上安装Python编译器Windows操作系统可以直接下载安装包,双击运行。(python2.x...
分类:编程语言   时间:2014-07-11 12:28:21    阅读次数:323
mahout 安装
1. 下载mahout-distribution-0.5.tar.gz 并解压;2.配置环境变量: /etc/profileexport MAHOUT_HOME=/home/mahout/export PATH=$MAHOUT_HOME/bin:$PATH3. 启动hadoopstart-all.s...
分类:其他好文   时间:2014-07-11 12:17:49    阅读次数:133
Microsoft Azure News(2) 在Microsoft Azure上运行SAP应用程序
《Windows Azure Platform 系列文章目录》 2014年6月27日消息,在 Microsoft Azure 上提供 SAP Business Suite 软件、All-In-One 解决方案、SAP 移动平台、SAP Adaptive Server Enterprise ...
分类:其他好文   时间:2014-07-11 12:13:08    阅读次数:191
grep/awk/sed 或者 并且 否定
Grep 'OR' OperatorFind all the lines in a file, that match any of the following patterns.Using GREP command :grep "pattern1\|pattern2" file.txtgrep -E...
分类:其他好文   时间:2014-07-10 14:44:42    阅读次数:212
LeetCode ---Anagrams() 详解
Notice:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.For example:Input: ["tea","an....
分类:其他好文   时间:2014-07-10 14:44:00    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!