本帖最后由 雕爷学编程 于 2020-4-11 10:39 编辑

1、hello micropython

#MicroPython动手做(04)——零基础学MaixPy之基本示例


#程序之一:hello micropython

#MicroPython动手做(04)——零基础学MaixPy之基本示例
  • #程序之一:hello micropython
  • import sys
  • for i in range(0, 2):
  •     print("hello micropython")
  •     print("hello ", end="micropython\n")
  • print("implementation:", sys.implementation)
  • print("platform:", sys.platform)
  • print("path:", sys.path)
  • print("Python version:", sys.version)
  • print("please input string, end with Enter")
  • r = sys.stdin.readline()
  • w_len = sys.stdout.write(r)
  • 复制代码