![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程语言
中杯的拿铁
Java、Python、bash、Tcl,电信支撑网、接入网、核心网,Linux,云计算
展开
-
Python学习笔记:01 环境搭建和“Hello World!”
刚刚接触Python两个月,把积累的东西记录下来,算是给以后万一用到的时候做一个参考,也希望能分享一下。 初学无知,多多关照。 环境安装 这里介绍如何在Windows下搭建Python运行环境,并运行第一个Hello World!程序。本文的运行环境是Windows7,Python 2.7。 Python目前分为Python2和Python3两个版本。二者有原创 2014-02-12 20:40:34 · 942 阅读 · 1 评论 -
Python学习笔记:05 数组的基本用法(Tuple和List)
数组的基本用法 本篇介绍Tuple和List这两种数组。Dictionary另外单独介绍。 这里仅介绍数组的基本用法。更多高级用法以后逐步讨论 Tuple和List的基本操作 显式地创建一个一维数组 myTuple=('a', 'b', 'c') 或: myList=['a', 'b', 'c'] 注意: 1) 以圆括号创建的数组,是一种名为“Tuple”(元组)原创 2014-02-14 22:00:10 · 3552 阅读 · 0 评论 -
Python学习笔记:04 循环
基本while循环 print '###############' print 'Basic while loop:' i = 0 while i < 5: print 'i =', i i += 1 print '' C风格的“整型做为循环条件” print '################' print 'Integer as boole原创 2014-02-12 21:13:09 · 1013 阅读 · 0 评论 -
Python学习笔记:03 布尔值和逻辑判断
基本if、else语句 # Standard if / else statement print 'Standard if / else statement test:' i = 2 print 'The value if i is:', i if i == 1: print 'Entered branch 1.' elif i == 2: print 'Entere原创 2014-02-12 20:58:44 · 6139 阅读 · 0 评论 -
Python学习笔记:02 基础:变量、整数、字符串、赋值、基本输出、注释、代码块
字符串赋值 # String value assignment myStr = "hello" print "String variable 'myStr'" + \ ', which is actually assgined as a value with type "String", now has value: \'' + myStr + '\'' 注: *原创 2014-02-12 20:48:32 · 2928 阅读 · 0 评论