Embedded_game/002_B_Car/获取SD卡文件.py

12 lines
240 B
Python
Raw Permalink Normal View History

2025-01-02 12:48:11 +08:00
# Untitled - By: nian0 - 周日 11月 12 2023
import os
# 列出SD卡内容
print(os.listdir('/sd'))
# # 访问一个文件,例如读取一个文本文件
# with open('/sd/test.txt') as f:
# content = f.read()
# print(content)