python基础入门一(语法基础)
2016-01-29 14:06
639 查看
作为自己正式接触并应用的第一门编程语言,在Alex和武sir两位大王的要求下,开始了写博客总结的日子。学习编程语言是很有趣的一件事情,但有2点请一定要谨记:1.做人靠自己,码代码也必须靠自己。能不能成为python大牛,靠的是平时逻辑的训练和日复一日的码代码练出来的;2.多总结、多思考、多查阅。实现需求的方式有多种,但总会有另一个办法是更加高效的!
博文内容属于基础篇,实时更新,如有地方写的不好,还请大家批评指正!
大人不华,君子务实!
View Code
博文内容属于基础篇,实时更新,如有地方写的不好,还请大家批评指正!
大人不华,君子务实!
python的语法基础
append(...) | L.append(object) -> None -- append object to end | clear(...) | L.clear() -> None -- remove all items from L | copy(...) | L.copy() -> list -- a shallow copy of L | count(...) | L.count(value) -> integer -- return number of occurrences of value | extend(...) | L.extend(iterable) -> None -- extend list by appending elements from the iterable | index(...) | L.index(value, [start, [stop]]) -> integer -- return first index of value. | Raises ValueError if the value is not present. | insert(...) | L.insert(index, object) -- insert object before index | pop(...) | L.pop([index]) -> item -- remove and return item at index (default last). | Raises IndexError if list is empty or index is out of range. | remove(...) | L.remove(value) -> None -- remove first occurrence of value. | Raises ValueError if the value is not present. | reverse(...) | L.reverse() -- reverse *IN PLACE* | sort(...) | L.sort(key=None, reverse=False) -> None -- stable sort *IN PLACE* |
View Code
相关文章推荐
- python多进程那点事儿【multiprocessing库】
- [Leetcode]146. LRU Cache @python
- python 编码注释问题
- 菜鸟学python(9) 射门游戏(综合练习)
- python查看删除你微信的账号
- Python 练手程序合集(二)
- 利用 Python 只连接一次 MySQL
- 三行命令搞定查询Python安装目录
- python获取前一天零点与二十四点的时间
- 【同行说技术】Python程序员小白变大神必读资料汇总( 三)
- Python第三方包(package)的使用
- python操作Excel读写--使用xlrd
- 【python常用模块】os.path
- 13岁Python开发者写给青少年的多人游戏编程(上)
- python Exception
- python分布式任务调度Celery
- 使用cx_Freeze打包Python程序
- 谈谈python的GIL、多线程、多进程
- Python 3.x基于Svn补丁日志自动生成Java项目补丁包
- python新手必碰到的问题---encode与decode,中文乱码