摘要: HC-SR04超声波测距模块可提供2cm-400cm的非接触式距离感测功能,测距精度可达高到3mm。 模块包括超声波发射器、接收器与控制电路。 基本工作原理: (1)采用IO口TRIG触发测距,给最少10us的高电平信呈。 (2)模块自动发送8个40khz的方波,自动检测是否有信号返回; (3)有信 阅读全文
posted @ 2018-02-03 17:28 Pascal空空 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 1 list = ((1,'iPhone X',8300),(2,'iPad Pro',4600),(3,'IBM z10',50000),(4,'Coffee',30)) 2 print('Welecome to 7-11 !\n') 3 print('There are:') 4 for i in list:print(i) 5 balance = int(input('\nPle... 阅读全文
posted @ 2017-12-28 18:57 Pascal空空 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 2017年11月底开始python的学习。选择python 3.6。 账号登陆的粗糙实现。 阅读全文
posted @ 2017-12-05 19:13 Pascal空空 阅读(236) 评论(0) 推荐(1) 编辑