# -*- coding: utf-8 -*- """ 由 YktVue/src/views/JcXx.vue 生成 JcXx.optimized.vue。 设计约束(与用户需求一一对应): 1. ') + len('')] s = src def rep(text, old, new, tag, count=1): n = text.count(old) assert n == count, '[%s] 期望 %d 处,实际 %d 处' % (tag, n, count) return text.replace(old, new) # ============================================================ 1. template:语义 class s = rep(s, '