Skip to content

Eyrane/python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

learn web: http://www.runoob.com/python/python-operators.html

若运行的时候出现如下错误:
bash: ./test: /usr/bin/python^M: 解释器错误: 没有那个文件或目录  //文件编辑格式出错
vim filename
:set ff
:set ff=unix

test1包括了基础语法和变量类型(字符串、列表、元组、字典)

test2包括了运算符(算术、比较、位、赋值、逻辑、成员、身份)和条件语句(if elif else)、循环语句(while for)

test3包括列表的一些基本用法,如pop(),append(),len()等;以及元组和字典的基本用法

test4时间和日期:time模块、calendar模块、datetime模块

test5函数:函数的定义和调用、形参和实参、不定长参数、匿名函数

test6.py:自定义的一个模块
test6:对自定义的模块test6进行调用

test7:控制台io(raw_input,input),文件io(open,close,write,read,tell,seek)

test8:异常处理,try(执行的代码) except(异常出现会执行) else(没有异常会执行) finally(总会执行)

test9:类:类的定义和使用、类的继承、方法的重写、public,protected,privated、新式类和经典类

test10:几个练习实例
test12:练习实例

test11:GUI编程,画圆形、矩形

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages