腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
我的博客
专栏作者
举报
577
文章
915694
阅读量
39
订阅数
订阅专栏
申请加入专栏
全部文章(577)
其他(131)
php(126)
html(43)
数据库(40)
云数据库 SQL Server(39)
apache(29)
linux(27)
ubuntu(26)
android(22)
编程算法(19)
nginx(18)
thinkphp(17)
laravel(15)
javascript(14)
windows(14)
sql(12)
es 2(12)
存储(11)
python(10)
.net(10)
node.js(10)
ftp(10)
bash(9)
svn(9)
缓存(9)
access(8)
人工智能(8)
https(8)
logstash(8)
java(7)
hive(7)
数据结构(7)
云数据库 Redis(6)
eclipse(6)
centos(6)
ssh(6)
tcp/ip(6)
input(6)
c 语言(5)
xml(5)
jquery(5)
json(5)
git(5)
shell(5)
网络安全(5)
jdk(5)
正则表达式(5)
yum(5)
dns(5)
lamp(5)
vue.js(4)
http(4)
gcc(4)
配置(4)
mac os(3)
go(3)
angularjs(3)
ajax(3)
memcached(3)
github(3)
express(3)
yarn(3)
wordpress(3)
虚拟化(3)
ios(2)
c++(2)
css(2)
composer(2)
sqlite(2)
mvc(2)
打包(2)
api(2)
搜索引擎(2)
unix(2)
容器镜像服务(2)
分布式(2)
npm(2)
seo(2)
flash(2)
iis(2)
zabbix(2)
安全(2)
小程序(2)
file(2)
ps(2)
vagrant(2)
NLP 服务(1)
ruby(1)
bootstrap(1)
react(1)
汇编语言(1)
oracle(1)
tomcat(1)
lucene/solr(1)
windows server(1)
bash 指令(1)
文件存储(1)
腾讯云测试服务(1)
eslint(1)
webpack(1)
压力测试(1)
html5(1)
erp(1)
gui(1)
asp(1)
二叉树(1)
markdown(1)
ntp(1)
数据处理(1)
安全漏洞(1)
nat(1)
element ui(1)
alarm(1)
break(1)
callback(1)
case(1)
chmod(1)
codec(1)
configuration(1)
connection(1)
data(1)
date(1)
default(1)
email(1)
fwrite(1)
generator(1)
handle(1)
int(1)
kibana(1)
prettier(1)
redis(1)
redmine(1)
rpm(1)
stdin(1)
syslog(1)
time(1)
var(1)
void(1)
worker(1)
测试(1)
程序(1)
递归(1)
管理(1)
计算机(1)
监控(1)
开发(1)
权限(1)
软件(1)
推送(1)
虚拟机(1)
搜索文章
搜索
搜索
关闭
python关键字
python
and exec not assert finally or break for pass class from print continue global raise def if return del import try elif in while else is with except lambda yield
苦咖啡
2018-04-28
682
0
安装python-mysqldb
python
云数据库 SQL Server
pip install mysql-python 提示error: Unable to find vcvarsall.bat 解决方案:安装mingw(http://www.mingw.org/) 或者直接下载:https://sourceforge.net/projects/mysql-python/files/mysql-python/
苦咖啡
2018-04-28
1.4K
0
Python列表、元组、字典操作
python
#!/usr/bin/python # -*- coding: UTF-8 -*- list1 = [1,2,'a', 'b'] seq = (1,4,5) print list1[2] #获取第三个元素(下标是从0开始) print list1[-3] #获取倒数第三个元素 print list1[2:] #获取第三个元素到最后一个 print len(list1) #获取列表元素个数 print max(list1) #获取最大的元素 print min(list1) #
苦咖啡
2018-04-28
1.6K
0
Python文件操作
python
#!/usr/bin/python # -*- coding: utf-8 -*- import os path = os.getcwd() file_list = os.listdir(path) if '2.log' in file_list : os.remove(path + '/2.log') r_file = open(path + '/1.log') w_file = open(path + '/2.log', 'w') r_content = r_file.read() w_con
苦咖啡
2018-04-28
779
0
Python字符串
python
# -*- coding: utf-8 -*- import re #字符串替换 str1 = 'hello world world world abc=123 abc=valu' #第一参数是被替换的字符串,第二个参数是新字符串,第三个是替换次数(默认替换全部) print str1.replace('world', 'Pythoner') old = re.compile("abc=\d{1,}") print old.sub("abc=234",str1) 字符串函数列表 函数名 参数 说明
苦咖啡
2018-04-28
720
0
Python调用Shell命令–总有一款适合你
python
shell
#!/usr/bin/python # -*- coding: utf-8 -*- import os import commands import subprocess # content = os.system('ls -al') #执行结果 0或者1 # print '结果:%s' % content # content = os.popen('ls -al').read() # print '###结果:%s' % content # content = os.popen('ls -al').re
苦咖啡
2018-04-28
750
0
Python-MySQL查询函数使用示例
python
云数据库 SQL Server
# -*- coding: UTF-8 -*- import MySQLdb import time #警告信息try except是无法捕捉的 from warnings import filterwarnings filterwarnings(‘error’, category = MySQLdb.Warning) cursor = conn = delete_id = update_id = 0 try: conn = MySQLdb.connect(host=’10.200.
苦咖啡
2018-04-28
1.5K
0
Python操作MySQL数据库
python
云数据库 SQL Server
数据库python-mysql安装参考:http://blog.phpfs.com/archives/2343.html # -*- coding: UTF-8 -*- import MySQLdb import time #警告信息try except是无法捕捉的 from warnings import filterwarnings filterwarnings('error', category = MySQLdb.Warning) cursor = conn = delete_id = update
苦咖啡
2018-04-28
1.1K
0
Python警告信息捕捉
python
异常和警告处理案例 # -*- coding: UTF-8 -*- import MySQLdb #警告信息try except是无法捕捉的 from warnings import filterwarnings filterwarnings('error', category = MySQLdb.Warning) #当然也可以屏蔽警告filterwarnings("ignore") try: conn = MySQLdb.connect(host='127.0.0.1',user='test',p
苦咖啡
2018-04-28
1.5K
0
supervisor安装和使用
python
ubuntu
1.介绍 Supervisor (http://supervisord.org) 是一个用 Python 写的进程管理工具,可以很方便的用来启动、重启、关闭进程(不仅仅是 Python 进程)。除了对单个进程的控制,还可以同时启动、关闭多个进程,比如很不幸的服务器出问题导致所有应用程序都被杀死,此时可以用 supervisor 同时启动所有应用程序而不是一个一个地敲命令启动。 2.Ubuntu14.04安装 sudo apt-get install supervisor 3.配置说明
苦咖啡
2018-04-28
937
0
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
立即发文
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档