摘要: 阅读全文
posted @ 2018-10-23 22:21 梁大侠 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 导体:最外层电子在外电场作用下很容易产生定向移动 绝缘体:原子的最外层电子受原子核的束缚力强,外电场强到一定程度才导电 半导体:介于导体与绝缘体之间 本征半导体:纯净的晶体结构(稳定)的半导体 常用的半导体材料有四价硅和锗(zhě) 载流子:运载电荷的粒子为载流子(空穴和自由电子) 温度特性: 1. 阅读全文
posted @ 2018-10-23 12:21 梁大侠 阅读(1388) 评论(0) 推荐(0) 编辑
摘要: 对IO口进行输入输出操作: 1.配置状态 2.如果配置的是输入状态(配置上拉电阻寄存器) 3.写数据 阅读全文
posted @ 2018-07-10 10:17 梁大侠 阅读(607) 评论(0) 推荐(0) 编辑
摘要: 删: dict.fromkeys[很少用]: 字典的嵌套: 排序 sorted(dict) 返回一个有序的包含字典所有key的列表: 遍历: 阅读全文
posted @ 2018-06-19 16:25 梁大侠 阅读(201) 评论(0) 推荐(0) 编辑
摘要: isdigit()判断长的是否像数字: len() 计算数组长度: 阅读全文
posted @ 2018-06-17 23:04 梁大侠 阅读(598) 评论(0) 推荐(0) 编辑
摘要: salary=5000 flag=True user_buy1=[] msg=''' --------欢迎光临----------- salary=5000 1.iphone6s 5800 2.mac book 9200 3.coffee 32 4.python book 80 5.bicyle 1500 6.结束购物,... 阅读全文
posted @ 2018-06-17 18:06 梁大侠 阅读(266) 评论(0) 推荐(0) 编辑
摘要: count计算元素出现的次数: index查找元素在第几个位置: reversed倒着取元素: sort排序: 身份判断: 元组(只读数组): 列表嵌套: 阅读全文
posted @ 2018-06-16 20:26 梁大侠 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 字符串的格式化输出: %s 占位符 %d 整数 %f 浮点数 for语句: 练习: 阅读全文
posted @ 2018-06-16 16:27 梁大侠 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 输出三个数中最大值: num1=int(input('num1:')) num2=int(input('num2:')) num3=int(input('num3:')) if num1>num2 and num1>num3 : print('max:',num1) elif num2>num1 a 阅读全文
posted @ 2018-06-15 11:43 梁大侠 阅读(2959) 评论(0) 推荐(1) 编辑
摘要: 一、Print()格式: 1、 print() #等价于print(end="\n") 2、 print('hello word') print("hello word") #单双引号都可以 3、 print('hello word\n'*8) 或 print('hello word') print 阅读全文
posted @ 2018-06-14 21:39 梁大侠 阅读(399) 评论(0) 推荐(0) 编辑