码迷,mamicode.com
首页 >  
搜索关键字:python 好用法    ( 135044个结果
使用字符串
1.字符串格式化使用字符串格式化操作符,即百分号%来实现。2.在%的左侧放置一个字符串(格式化字符串),而右则放置希望格式化的值。3.格式化字符串的%s部分称为转换说明符,它们标记了需要插入转换值的位置。S表示值会被格式化为字符串-如果不是字符串,则会用str将其转换为字..
分类:其他好文   时间:2014-06-10 22:20:02    阅读次数:283
Linux下安装或升级Python 2.7
1.准备编译环境gcc2.去官网下载要安装的对应版本的python的源代码下载地址:https://www.python.org/downloads/source/你可以选择你要下载的版本,用wget指令来下载相应的源代码3.解压下载的代码包tar -zxvf Python-x.x.x.tgzcd ...
分类:编程语言   时间:2014-06-10 19:52:52    阅读次数:240
[leetcode]Roman to Integer @ Python
原题地址:https://oj.leetcode.com/problems/roman-to-integer/题意:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range f...
分类:编程语言   时间:2014-06-10 19:34:10    阅读次数:255
[Python]socket使用
python socket可以实现socket通信功能,还可以与php, js等程序进行socket通信,达到在网页中嵌入Python程序的目的。 Python中使用socket模块完成socket通信功能,其提供底层的套接字访问接口。 项目中,Python通过socket与前端js通信,读入数据,处理后传回。...
分类:编程语言   时间:2014-06-10 19:21:09    阅读次数:312
python监控linux性能以及进程消耗的性能
python监控linux性能以及进程消耗的性能...
分类:编程语言   时间:2014-06-10 18:44:54    阅读次数:371
Python 摄像头截图
先容哥叹息一句,此奥~,这什么g8情况,没头脑的装了将近3g的OpenCV,结果没啥用。。。 入题!!环境为Python2.7 严格按照一下步骤操作,必成功: 所需软件如下: VideoCapture:  http://videocapture.sourceforge.net/VideoCapture-0.9-5.zip MyEclipse 插件PyDev: http://ncu.d...
分类:编程语言   时间:2014-06-10 18:44:17    阅读次数:390
高性能 Socket 组件 HP-Socket v3.2.1 正式公布
HP-Socket 是一套通用的高性能 TCP/UDP Socket 组件,包括服务端组件、client组件和 Agent 组件,广泛适用于各种不同应用场景的 TCP/UDP 通信系统,提供 C/C++、C#、Delphi、E(易语言)、Java、Python 等编程语言接口。HP-Socket.....
分类:其他好文   时间:2014-06-10 17:16:54    阅读次数:259
[leetcode]Integer to Roman @ Python
原题地址:https://oj.leetcode.com/problems/integer-to-roman/题意:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range f...
分类:编程语言   时间:2014-06-10 17:06:11    阅读次数:261
[leetcode]Letter Combinations of a Phone Number @ Python
原题地址:https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/题意:Given a digit string, return all possible letter combinations that the ...
分类:编程语言   时间:2014-06-10 16:40:57    阅读次数:223
[leetcode]Longest Common Prefix @ Python
原题地址:https://oj.leetcode.com/problems/longest-common-prefix/题意:Write a function to find the longest common prefix string amongst an array of strings.解...
分类:编程语言   时间:2014-06-10 16:31:52    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!