腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
从零开始的linux
专栏作者
举报
103
文章
131643
阅读量
39
订阅数
订阅专栏
申请加入专栏
全部文章(103)
linux(33)
其他(26)
python(10)
yum(9)
nginx(7)
数据库(6)
容器镜像服务(6)
shell(6)
bash(5)
云数据库 SQL Server(5)
ssh(4)
grep(4)
node.js(3)
云数据库 Redis(3)
apache(3)
es 2(3)
容器(3)
java(2)
php(2)
git(2)
mongodb(2)
存储(2)
jdk(2)
hadoop(2)
go(1)
erlang(1)
.net(1)
html(1)
json(1)
oracle(1)
access(1)
django(1)
api(1)
tomcat(1)
mapreduce(1)
文件存储(1)
人工智能(1)
express(1)
编程算法(1)
开源(1)
分布式(1)
自动化(1)
运维(1)
hive(1)
正则表达式(1)
unity(1)
ftp(1)
npm(1)
二叉树(1)
rabbitmq(1)
gcc(1)
anaconda(1)
大数据(1)
安全(1)
https(1)
系统架构(1)
hbase(1)
kafka(1)
搜索文章
搜索
搜索
关闭
python运算符
python
算数运算符 符号描述例子-减法3 - 2=1+加法3 + 2=5*乘法3 * 2=6/除法4 / 2=2%取模 取余数3 % 2=1**幂2 ** 3=8//取整除,除尽9 // 2=4 逻辑运算符号 优先级是递减() not and or 关系运算符 符号描述例子== 等于(1 == 2) 返回 False!=不等于(1 != 2) 返回 true<>不等于(1 <> 2) 返回 true。这个运算符类似 !=<小于(1 > 2) 返回 False>大于(1 < 2) 返回 true>=大于等于(1 >=
零月
2018-04-25
966
0
python条件判断
python
if判断 a= 1 if a>10: print 'a大于10' print 'a小于10' a = -20 if a > 10: print ('a > 10') elif a==0: print 'a is 0' else: print 'a is fushu' while循环 x = 10 while x >0: print '22222' x-=1 abc = 10 while abc > 0: print ('abc = %s' % a
零月
2018-04-25
1.7K
0
用python解释mapreduce
python
mapreduce
hadoop
map import sys #输入为标准输出stdin for line in sys.stdin: #删除开头和结尾的空行 line = line.strip() #以默认空格分隔单词到words列表 words = line.split() for word in words: #输出所有单词,格式为“单词,1”以便为reduce的输入 print '%s %s' % (word,1) reduce import sys cur
零月
2018-04-25
670
0
二分查找(python)
python
编程算法
假期无聊,在家无网络,就看了看传说中的算法,一个字难 下面都是本人的愚见,如有不对请谅解: 二分查找的前提是有序其次是排除一半,比如1..100之间猜一个数值的大小,从50猜起,去掉一半,大了还是小
零月
2018-04-25
851
0
猜数字小游戏
python
import random import sys num=random.randint(1,20) print "------------------------------------------------------------------------------" print '''Game rules: There is a integer between 1 and 20.If you can guess it in six chances,you win the game,otherwise
零月
2018-04-25
703
0
了解ansible
yum
python
由于工作需要重温ansible 安装ansible [root@ansible ~]# yum -y install ansible python多线程 最大支持5个1(1s)2(1s)3(1s)4(1s)5(3s)慢一些保证一致性10个线程要跑最大支持5 个1 2 3 4 5 1换成6 这样快的情况会有线程锁了解生产者消费者模型python2.7是假的多线程python3是真的多线程python2.7可以用多进程来实现 ansible源码 whereis ansibleansible: /us
零月
2018-04-25
1K
1
python变量
python
python下变量是对一个数据的引用 >>> a=123 >>> id(a) 39435920L 四则小运算 #!/usr/bin/pythonnum1 = input("please a number:")num2 = input("please a number:")print "%s + %s = %s" % (num1, num2, num1+num2)print "%s - %s = %s" % (num1, num2, num1-num2)print "%s * %s = %s" % (num1
零月
2018-04-25
1.2K
0
python字符串类型
python
字符串长度 >>> a = 'hello python'>>> len(a)12 字符串取值从0开始 >>> a[0]'h' >>> a[1]'e' >>> a[-1]'n' 后一位不包括 >>> a[2:4]'ll' >>> a[2]'l'>>> a[4]'o' 取全部 >>> a[:]'hello python' >>> a[4:]'o python'>>> a[:-1]'hello pytho' 重复 >>> a'hello python'>>> a * 3'hello pythonhello pyt
零月
2018-04-25
695
0
初识ansible
自动化
运维
python
ssh
Ansible是一个简单的自动化运维管理工具,基于Python语言实现 ansible2.2已经支持ZeroMQ 部署简单,只需在主控端部署Ansible环境,被控端无需做任何操作; 默认使用SSH协
零月
2018-04-25
732
0
安装ipython和虚拟环境
yum
python
linux
先epel-release这个包, 通过epel源安装pip: yum install python-pip 然后pip install ipython==1.2.1 pip install ipython==1.2.1 DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support fo
零月
2018-04-25
1K
0
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
立即发文
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档