E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Python3.4
未优化,一个
Python3.4
的mysql连接类
这个类依赖于 dev.mysql.com/doc/connector-python/en/index.htmlimportmysql.connector importjson importos importframeworkasf classHel_MySql_Link: CONST_INS={'db1':0,'db2':0} _cnx=0 _cursor=0 def__init__(self
u012664888
·
2014-05-22 23:00
mysql
python
经典C语言程序设计100例 -- C 和 Python 版 (01 - 05)
C语言编译器:GCC4.8.2 Python版本:
Python3.4
写这个系列是受这位博主(http://blog.csdn.net/berguiliu?
xiaohui_hubei
·
2014-05-20 19:00
python
C语言
程序设计
python3.4
使用pymysql 连接mysql数据库
系统是ubuntu14.04,安装pymysql非常简单$ sudo pip3 install PyMySQL用法也非常简单,一个简单的例子import pymysql conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='root', db='mysql',charset="utf8"))#需加入cha
有名者赫赫
·
2014-05-18 21:00
python3.4
使用文件
源码:poem='''\ProgrammingisfunWhentheworkisdoneifyouwannamakeyourworkalsofun:usePython!'''f=file('poem.txt','w')#openfor'w'ritingf.write(poem)#writetexttofilef.close()#closethefilef=file('poem.txt')#ifn
子子清清
·
2014-05-09 14:00
Python3.4
如何读取一个文件并打印
Python用来处理文本,是非常简洁方便的,散仙对Python也是处于入门阶段,今天写了个简单的小脚本来,读取文件,并打印,结果报异常了,总结如下: 第一个异常信息 "SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXX
qindongliang1922
·
2014-04-23 16:00
python
读取文件
Python3.4
如何读取一个文件并打印
Python用来处理文本,是非常简洁方便的,散仙对Python也是处于入门阶段,今天写了个简单的小脚本来,读取文件,并打印,结果报异常了,总结如下: 第一个异常信息 "SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXX
qindongliang1922
·
2014-04-23 16:00
python
读取文件
Python3.4
如何读取一个文件并打印
Python用来处理文本,是非常简洁方便的,散仙对Python也是处于入门阶段,今天写了个简单的小脚本来,读取文件,并打印,结果报异常了,总结如下: 第一个异常信息 "SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXX
qindongliang1922
·
2014-04-23 16:00
python
读取文件
Python3.4
如何读取一个文件并打印
Python用来处理文本,是非常简洁方便的,散仙对Python也是处于入门阶段,今天写了个简单的小脚本来,读取文件,并打印,结果报异常了,总结如下: 第一个异常信息 "SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXX
qindongliang1922
·
2014-04-23 16:00
python
读取文件
Python3.4
如何读取一个文件并打印
Python用来处理文本,是非常简洁方便的,散仙对Python也是处于入门阶段,今天写了个简单的小脚本来,读取文件,并打印,结果报异常了,总结如下: 第一个异常信息 "SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXX
qindongliang1922
·
2014-04-23 16:00
python
读取文件
Python3.4
如何读取一个文件并打印
Python用来处理文本,是非常简洁方便的,散仙对Python也是处于入门阶段,今天写了个简单的小脚本来,读取文件,并打印,结果报异常了,总结如下: 第一个异常信息 "SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXX
qindongliang1922
·
2014-04-23 16:00
python
读取文件
Python的冷知识和坑
除非特殊说明,以下代码皆为
Python3.4
。译文Python使用C3算法解决多重继承问题。根据C3算法,以下代码在处理多重继承的时候,会在classB之前检查classA的同名方法foo。
刘奕聪
·
2014-04-22 23:00
Python的冷知识和坑
除非特殊说明,以下代码皆为
Python3.4
。译文Python使用C3算法解决多重继承问题。根据C3算法,以下代码在处理多重继承的时候,会在classB之前检查classA的同名方法foo。
chichu4723
·
2014-04-22 23:00
Python3.4-文本-translate
Python3.4
已经没有string.maketran
wirelessqa
·
2014-04-15 22:00
Python3.4
字符串包含 & 集合
""" 字符串包含&集合 """ #方法一: defcontainsAny(allstr,childstr): forcinallstr: ifcinchildstr:returnTrue returnFalse allstr="老毕很帅嘛" childstr="帅" print(containsAny(allstr,childstr))#True #方法二: defcontainsAny
wirelessqa
·
2014-04-13 16:00
Python3.4
字符串对齐/删除空格/合并/反转
""" 1.字符串对齐 """ #对齐方式 print('|'+'左对齐'.ljust(20)+'|'+'右对齐'.rjust(20)+'|'+'居中'.center(20)+'|') #|左对齐|右对齐|居中| #填充字符串 print('|'+'左对齐'.ljust(20,'#')+'|'+'右对齐'.rjust(20,'#')+'|'+'居中'.center(20,"#")+'|') #
wirelessqa
·
2014-04-13 13:00
Python3.4
每次处理一个字符
"""
Python3.4
【文本】之每次处理一个字符 """ test_str="mynameisbixiaopeng" forxinrange(0,len(test_str)-1): print("
wirelessqa
·
2014-04-13 11:00
Python3.4
字符串基础
""" Python文本之一[字符串基础] Pythonversion:3.4 """ #单引号 str_single_quotes='blog:http://www.csdn.net/wirelessqa' #双引号 str_double_quotes="blog:http://www.csdn.net/wirelessqa" print("##单引号:"+str_single_quotes
wirelessqa
·
2014-04-13 10:00
ubuntu python3 django开发环境配置
需要安装的组件有
python3.4
,django1.6.2
frank-liu
·
2014-04-12 00:00
python3
升级MAC OX上的Python到最新版
第1步:下载
Python3.4
下载地址如下:下载MacOSX64-bit/32-bitinstallerhttps://www.python.org/downloads/release/python-340
wirelessqa
·
2014-04-09 13:00
上一页
20
21
22
23
24
25
26
27
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他