
特征:封装,继承,多态 对象的方法 self 参数 (相当于c++中的this指针) >>> class Ball: def setName(s...
引出系统编程 ============= 1.实际开发中:需要多个程序能够"同时"运行(一心多用) 系统编程:解决多任务的并发操作...
#异常 #检测异常 try: ...#检测范围 except OSError as reason: #出现异常后的处理代码 print('文件出...
打开文件 'r' 只读方式打开文件(默认) 'w' 以写入的方式打开文件 会覆盖已经存在的文件 'x' 如果文件已经存在,使用此模式打开将引发异...
有一对兔子一个月之后每个月生一对兔子 n年后会有多少对兔子(斐波那契数列) def fun(n): if n == 1 or n==2: ...
函数: 函数文档: >>> def myfun(name): 'nihaoa' print('hi'+ name +'hello')...
课程概览 =============== 1.学习方法:学接口函数(返回值,功能,形参) 2.系统IO相关的函数 标准IO相...
序列 : 列表 元组 字符串 ---------------------------------------------- 元组和列表的特性...
linux基础 ============ 1.主要内容: 常用的linux命令(shell命令) ls cd linux网络配置...