Python
尹吉欢
欢迎大家关注我的微信公众号‘猿天地’, 猿天地由《Spring Cloud微服务-全栈技术与案例解析》作者尹吉欢创建。 JAVA方向为主(Spring Boot, Spring Cloud,Sharding JDBC,Elastic Job,Mongodb等)。 技术之路很漫长,我们一起前行吧。 作者代码分享GitHub地址:https://github.com/yinjihuan , 个人网站:http://cxytiandi.com/course , 有任何问题或者合作请联系我。微信号:jihuan900
展开
-
Python学习【1】Windows下Python开发环境配置
第一步: 进入https://www.python.org/中原创 2014-09-10 21:49:51 · 1333 阅读 · 0 评论 -
Python学习【3】变量解析
变量是指向地址的变化,而不是内容的变化 x = 12 id(x)原创 2014-09-10 22:57:01 · 1177 阅读 · 0 评论 -
Python学习【2】基本输入输出语句
1. print()函数进行输出 print("hello word")原创 2014-09-10 22:00:27 · 2943 阅读 · 0 评论 -
Python函数
1.系统库提供内部函数 字符函数库: islower()判断字符串是否全部为小写 x = "hello" x.islower() 结果为true isspace()判断字符串是否有空格 x = "hello" x.isspace() 结果为false replace()替换内容 x = "kfldfjsdjjijijidsd" x.replace原创 2014-09-11 22:51:34 · 1185 阅读 · 0 评论 -
Python字符串
一.字符串定义:有序的字符序列集合,常量。 1. 定义: s1 = 'hello' s2 = "hello" s3 = """hello""" 2. 转义字符串: str = "\t" 3. raw字符串:关闭转义机制,把\n当做普通字符串来处理 str = r"aa\nbb" 4. unicode字符串: str = u"aa\nbb" 5.原创 2014-09-23 21:35:48 · 1234 阅读 · 0 评论 -
if分支语句
count = 50 if count > 40 : print原创 2014-09-15 21:18:58 · 1402 阅读 · 0 评论 -
While循环
while : print原创 2014-09-15 21:23:20 · 1197 阅读 · 0 评论 -
for循环
1.遍历字符串 s = "www.baidu.com" for c in s : print c else : print 'out for' 2.遍历数组 list = [1,2,3,4,5,6,7] for i in list : print i list = list(s)转换成数组 3.输出1到100奇数 for i in r原创 2014-09-16 20:23:34 · 1196 阅读 · 0 评论