码迷,mamicode.com
首页 >  
搜索关键字:python3 字符串操作    ( 14236个结果
python3 ImageTk 安装方法
使用命令:$ sudo yum search PIL | grep python3可显示得知:python3-dogpile-cache.noarch : A caching front-end based on the Dogpile lock.python3-dogpile-core.noarc...
分类:编程语言   时间:2015-09-13 19:57:30    阅读次数:870
统计任意两个正整数之间所有奇数的和
题目来源: Conditions and Loops 1 #!/usr/bin/python3 2 # sum all odds between two positive integer 3 4 a = int(input("Please input one positive integer > ....
分类:其他好文   时间:2015-09-12 12:04:54    阅读次数:139
python3.4.3 调用http接口 解析response xml后插入数据库
#!/usr/bin/python3import timeimport pymssqlimport urllib.parseimport httplib2import os.pathimport xml.etree.ElementTreeimport cx_Oraclev_curr_datetime...
分类:数据库   时间:2015-09-11 12:41:03    阅读次数:241
Supporting Python 3(支持python3)——迁移策略
迁移策略 制作一个向后不兼容的软件版本是有很高风险的。 当人们需要重写他们的软件或者为了支持两个语言或框架的版本维护割裂的版本时, the risk is that they never make the transition and stay on the old ...
分类:编程语言   时间:2015-09-10 11:22:05    阅读次数:305
javascript学习心得(1)replace
在JavaScript中replace函数作为字符串替换函数,这是一个威力强大的字符串操作函数,对于常见字符串操作的推荐用法。这篇随笔就来更加深入的理解它。 replace函数接受两个参数: 第一个参数为字符串或正则表达式; 第二个参数同样可以接受一个字符串,还可能是...
分类:编程语言   时间:2015-09-10 11:01:43    阅读次数:270
JAVA随笔(二)
做网易云课堂的java视频的课后题的笔记,主要是关于字符串操作的,还是挺有收获的。题目是:http://mooc.study.163.com/learn/ZJU-1000002014?tid=1000002010#/learn/ojhw?id=1000060003 第一题中主要是关于nex...
分类:编程语言   时间:2015-09-10 00:12:53    阅读次数:232
C语言字符串操作总结大全(超详细)
1)字符串操作 strcpy(p, p1) 复制字符串 strncpy(p, p1, n) 复制指定长度字符串 strcat(p, p1) 附加字符串 strncat(p, p1, n) 附加指定长度字符串 strlen(p) 取字符串长度 strcmp(p, p1) 比较字符串 strcasecm...
分类:编程语言   时间:2015-09-07 16:46:49    阅读次数:201
python 邮件发送的代码 网上的方法汇总一下
一、文件形式的邮件#!/usr/bin/env python3#coding: utf-8import smtplibfrom email.mime.text import MIMETextfrom email.header import Headersender = '***'receiver =...
分类:编程语言   时间:2015-09-07 12:25:02    阅读次数:194
C++中Cstring、wstring 和string互相转换总结
通过前一篇文章《C++中string,wstring,CString的基本概念和用法》,对Cstring wstring 和string有了一个了解.string是C++提供的标准字符串操作类.wstring是操作宽字符串的类. CString是对string(字符串)和wstring(宽字符串)的...
分类:编程语言   时间:2015-09-06 23:11:11    阅读次数:707
VBA 字符串操作
Trim(string)去掉string左右两端空白Ltrim(string)去掉string左端空白Rtrim(string)去掉string右端空白Len(string)计算string长度Left(string, x)取string左段x个字符组成的字符串Right(string, x)取st...
分类:编程语言   时间:2015-09-06 15:53:27    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!