UIFlow Guide
map 函数是一种在多种编程语言中普遍存在的内置函数或方法,它主要用于对可迭代对象,以下是如何使用 map 函数
from m5stack import *
from m5ui import *
from uiflow import *
date = None
date = {'a':1,'b':2,'c':'3'}
print('a' in date.keys())
print(date['b'])
date['d'] = '4'
date['a'] = '11'
date.pop('b')
date.clear()
date['a'] = '11'
print('a' in date.keys())
date['d'] = '4'
date.pop('b')
print(date['b'])
date.clear()
date = {'a':1,'b':2,'c':'3'}