9 lines
258 B
Python
9 lines
258 B
Python
import codecs
|
|
with codecs.open(r'd:\\骅锋\\mall\\layouts\\admin\\AdminLayout.uvue', 'r', 'utf-8') as f:
|
|
text = f.read()
|
|
|
|
import re
|
|
match = re.search(r'<view\s+class=[\'"]main-content[\s\S]*?<\/view>', text)
|
|
if match:
|
|
print(match.group(0)[:500])
|