如果已知一个string值str是枚举类型category中的一个值,有一函数为insert (Category cate)
如何用str这个值调用insert (Category cate)函数