这里会显示出您选择的修订版和当前版本之间的差别。
后一修订版 | 前一修订版 上一修订版 两侧同时换到之后的修订记录 | ||
icore3_micropython_13 [2020/06/15 18:08] zgf 创建 |
icore3_micropython_13 [2020/06/17 09:44] zgf [六、实验程序] |
||
---|---|---|---|
行 46: | 行 46: | ||
<code python> | <code python> | ||
+ | # -*- coding: utf-8-*- | ||
# MY/LED.py 文件 | # MY/LED.py 文件 | ||
import pyb | import pyb | ||
行 51: | 行 52: | ||
#LED类 | #LED类 | ||
class LED(object): | class LED(object): | ||
- | """docstring for LED""" | + | """My water LED""" |
def __init__(self): | def __init__(self): | ||
super(LED, self).__init__() | super(LED, self).__init__() | ||
行 64: | 行 65: | ||
<code python> | <code python> | ||
+ | # -*- coding: utf-8-*- | ||
# main.py 文件 | # main.py 文件 | ||
import LED #导入自写模块 | import LED #导入自写模块 |