我对.net很陌生,并寻求关于如何最好地创建只读对象结构的建议。这些结构是在编译时布局的,根本不会改变。我的目标是这样的: Public code, name As String
Public Structure CategoryNew Category With {.code = "Code5", .name = "Cat title
通过Flask,我尝试使用send_from_directory加载静态JSON文件。从这里我得到了一个Response对象。我不能以JSON格式获取此对象;但是。courses = send_from_directory("static/", "courses.json");
courses["math"] # not a JSON - cannot get mathelement from loa