摘要:
一 :模块 1.导入模块的两种方式: import 模块名1,模块名2 import 模块名1import模块名2 引用模块中的函数... 阅读全文
posted @ 2019-12-31 10:18
飞行的猪哼哼
阅读(25)
评论(0)
推荐(0)
|
摘要:
一 :模块 1.导入模块的两种方式: import 模块名1,模块名2 import 模块名1import模块名2 引用模块中的函数... 阅读全文
posted @ 2019-12-31 10:18
飞行的猪哼哼
阅读(25)
评论(0)
推荐(0)
摘要:
一:单例设计模式 # 单例设计模式:让类创建的对象,在系统中只有唯一的实例。# 每次执行类名() 返回的对象在内存中的地址是相同的。... 阅读全文
posted @ 2019-12-30 20:58
飞行的猪哼哼
阅读(46)
评论(0)
推荐(0)
摘要:
# 创建的对象叫做类的实例# 创建对象的动作叫做实例方法# 对象的属性叫做实例属性# 类属性和实例属性# 类属性:类对象中定义的属性... 阅读全文
posted @ 2019-12-30 19:33
飞行的猪哼哼
阅读(32)
评论(0)
推荐(0)
摘要:
一:封装 1.内置的三种方法: # 1.三种内置函数class Cat: def __init__(self,new_name... 阅读全文
posted @ 2019-12-30 16:32
飞行的猪哼哼
阅读(101)
评论(0)
推荐(0)
摘要:
# 1.利用元组返回多个数据def meansure(): a = 1 b = '123' #return (a,... 阅读全文
posted @ 2019-12-30 09:55
飞行的猪哼哼
阅读(29)
评论(0)
推荐(0)
摘要:
cards_main.py import cards_toolswhile True: # 显示菜单 cards_too... 阅读全文
posted @ 2019-12-28 17:08
飞行的猪哼哼
阅读(22)
评论(0)
推荐(0)
摘要:
一:列表new_list = ['aaa','bbb','ccc']#1, 取值和索引(知道内容,想知道在列表中的位置)print(... 阅读全文
posted @ 2019-12-28 08:19
飞行的猪哼哼
阅读(38)
评论(0)
推荐(0)
摘要:
1.单行注释和多行注释# :单行注释''' """ :多行注释2.python程序的执行原理:首先CUP将python解... 阅读全文
posted @ 2019-12-27 10:00
飞行的猪哼哼
阅读(36)
评论(0)
推荐(0)
摘要:
import randomperson = int (input("请输入你要出的拳头 %d 1:石头 2:剪刀 3:布" ))... 阅读全文
posted @ 2019-12-26 16:48
飞行的猪哼哼
阅读(28)
评论(0)
推荐(0)
摘要:
main.py # 1.导入managerSystem模块from managerSystem import *# 2. 启动学员管... 阅读全文
posted @ 2019-12-04 17:09
飞行的猪哼哼
阅读(45)
评论(0)
推荐(0)
|