# 创建文件并写入内容
file = open('example.txt', 'w')
file.write('Hello, MicroPython!')
file.close()
# 读取文件内容
file = open('example.txt', 'r')
content = file.read()
file.close()
# 打印文件内容
print(content)
# 创建文件并写入内容
file = open('example.txt', 'w')
file.write('Hello, MicroPython!')
file.close()
# 读取文件内容
file = open('example.txt', 'r')
content = file.read()
file.close()
# 打印文件内容
print(content)