以下是我的申请结构。我收到错误" NativeScriptException无法找到模块"," ../../ shared / view-models / user-view-model",相对于./shared/视图的模型/
请enter image description here找到该应用程序的屏幕截图。
答案 0 :(得分:2)
您需要一条错误的路径。替换为:
linenum = [7, 2, 6]
with open('inputv.dat', 'r') as f5, open('output_veloc_max.dat', 'w') as out:
d = {k: v for k, v in enumerate(f5, 1) if k in linenum}
out.writelines([d[i] for i in linenum])
P / s:此外,var UserViewModel = require("../shared/viewmodels/user-view-model");
下的文件夹是" viewmodels",而不是" view-models"