搜索
人大经济论坛 附件下载

附件下载

所在主题:
文件名:  Internet-of-Things-with-Python-master.zip
资料下载链接地址: https://bbs.pinggu.org/a-2254992.html
附件大小:
  1. #Internet of Things with Python

  2. This is the code repository for Internet of Things with Python, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

  3. ##Instructions and Navigation

  4. The code included with this book is meant for use as an aid in performing the exercises and should not be used as a replacement for the book itself. Used out of context, the code may result in an unusable configuration and no warranty is given.

  5. The code will look like the following:
  6. class NumberInLeds:
  7. def __init__(self):
  8. self.leds = []
  9. for i in range(9, 0, -1):
  10. led = Led(i, 10 - i)
  11. self.leds.append(led)

  12. def print_number(self, number):
  13. print("==== Turning on {0} LEDs ====".format(number))
  14. for j in range(0, number):
  15. self.leds[j].turn_on()
  16. for k in range(number, 9):
  17. self.leds[k].turn_off()


  18. if __name__ == "__main__":
  19. print ("Working with wiring-x86 on Intel Galileo Gen 2")

  20. number_in_leds = NumberInLeds()
  21. # Count from 0 to 9
  22. for i in range(0, 10):
  23. number_in_leds.print_number(i)
  24. time.sleep(3)
复制代码
[hide][/hide]


    熟悉论坛请点击新手指南
下载说明
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。
2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。
3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。
(如有侵权,欢迎举报)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

GMT+8, 2025-12-30 03:38