python
u010292637
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python:数据结构和函数
三重引号字符串:保留所有字符串的格式信息,引号、制表符或者其他任何信息,都将保存下来在字符串数组中,-1可以代表数组的倒数第一个元素Strings[6:10]为[6,10)半开区间加+和乘*有连接和重复作用数组分片可以引入第三个步长参数,如[::2]。当步长为负数时表示从末尾倒序到开头。find返回子串在原字符串中第一次出现的位置原创 2013-05-01 16:49:43 · 532 阅读 · 0 评论 -
python:开始编程
对python的学习着重于语言特征,即python自身的语法习惯,略去一些编程语言共有部分。本节主要以知识碎片形式记录表达式、选择和循环的基础语法raw_input函数返回用户的输入值并以字符串的形式储存起来int(sthString)将字符串转化为整数形式如果一条语句的长度超过了一行,为了提高可读性,可在前一行的末尾放置一个反斜杠字符(\)指示将续原创 2013-04-20 16:24:52 · 599 阅读 · 0 评论 -
why python
life is short, use python.原创 2013-04-19 20:42:03 · 507 阅读 · 0 评论 -
python:状态控制流
Python will take the negative after squaring the number.# 40 / 20 * 4 >= -4**2bool_four = True6 + 4 will return an integer, and we'll tell you that 100**0.5 will return a float. Python原创 2013-05-01 16:48:25 · 590 阅读 · 0 评论 -
python之禅&function
Type "import this" in the editorThe Zen of Python, by Tim PetersBeautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than co转载 2013-05-02 15:34:36 · 558 阅读 · 0 评论 -
python:列表和字典型
list操作主要是下标操作和appenddictionary操作有del remove() 其中remove()是以value做判定并为dot形式,del以key为准dictionary 中元素是无序的List和Dictionary中的一步,不知道错在哪里,最终步是对的原创 2013-05-03 15:12:27 · 1000 阅读 · 0 评论 -
codecademy
一个编程教学网站,内容包括APIs, Ruby, Python, JavaScript, jQuery, PHP,Web等感觉不错就拿这个来走python了,互动coding刷课比常规看书有主动些也有精神些http://www.codecademy.com/#!/exercises/0String部分:len(), str(), upper(), lower()四个方法,其中l原创 2013-04-30 14:09:22 · 825 阅读 · 2 评论
分享