无损检测期末复习笔记:十天章节笔记、考点精编、三套模拟卷(带Obsidian双链)

This commit is contained in:
2026-11-15 22:30:45 +08:00
commit 9fa797178b
57 changed files with 18111 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
import json
import os
def extract_text_from_content(content_list):
"""Recursively extract text from content structure"""
result = []
for item in content_list:
if isinstance(item, dict):
if item.get('type') == 'text' and 'content' in item:
text = item['content']
if isinstance(text, str):
result.append(text)
elif 'content' in item:
result.extend(extract_text_from_content(item['content']))
return result
def json_to_blocks(json_path):
"""Parse JSON and return list of (page_idx, blocks) tuples"""
with open(json_path, 'r', encoding='utf-8') as f:
data = json.load(f)
pages = []
for page in data['pages']:
pages.append((page['page_idx'], page['blocks']))
return pages
def blocks_to_markdown(pages):
"""Convert pages of blocks to Markdown"""
md_lines = []
for page_idx, blocks in sorted(pages, key=lambda x: x[0]):
md_lines.append(f"\n<!-- Page {page_idx + 1} -->\n")
for block in blocks:
btype = block.get('type', 'text')
texts = extract_text_from_content(block.get('content', []))
full_text = ''.join(texts).strip()
if not full_text:
continue
if btype == 'doc_title':
level = block.get('level', 1)
md_lines.append(f"{'#' * level} {full_text}\n")
elif btype == 'text':
md_lines.append(full_text + "\n")
elif btype in ('header', 'footer', 'page_number'):
md_lines.append(f"<!-- {btype}: {full_text} -->\n")
else:
md_lines.append(full_text + "\n")
return '\n'.join(md_lines)
if __name__ == '__main__':
base_dir = r'D:\mineru_home\doclib\parsed\d9\d991db7dc971c6655661492bb28129f2089d03222b439064e30b7156ff1ba848\flash'
json_files = [
os.path.join(base_dir, '1-10_1794301361022.json'),
os.path.join(base_dir, '11-318_1794301886872.json'),
]
all_pages = []
for jf in json_files:
pages = json_to_blocks(jf)
all_pages.extend(pages)
print(f"Loaded {jf}: {len(pages)} pages")
print(f"Total pages: {len(all_pages)}")
md = blocks_to_markdown(all_pages)
output_path = r'D:\考研\期末考\无损检测\ocr_work\full_book.md'
with open(output_path, 'w', encoding='utf-8') as f:
f.write(md)
print(f"Markdown saved to: {output_path}")
print(f"Total chars: {len(md)}")
+53
View File
@@ -0,0 +1,53 @@
import json
import sys
import os
def extract_text_from_content(content_list):
"""Recursively extract text from content structure"""
result = []
for item in content_list:
if isinstance(item, dict):
if item.get('type') == 'text' and 'content' in item:
text = item['content']
if isinstance(text, str):
result.append(text)
elif 'content' in item:
result.extend(extract_text_from_content(item['content']))
return result
def json_to_markdown(json_path):
with open(json_path, 'r', encoding='utf-8') as f:
data = json.load(f)
md_lines = []
for page in data['pages']:
page_idx = page['page_idx']
md_lines.append(f"\n<!-- Page {page_idx + 1} -->\n")
for block in page['blocks']:
btype = block.get('type', 'text')
texts = extract_text_from_content(block.get('content', []))
full_text = ''.join(texts).strip()
if not full_text:
continue
if btype == 'doc_title':
level = block.get('level', 1)
md_lines.append(f"{'#' * level} {full_text}\n")
elif btype == 'text':
md_lines.append(full_text + "\n")
elif btype == 'header':
md_lines.append(f"<!-- header: {full_text} -->\n")
elif btype == 'footer':
md_lines.append(f"<!-- footer: {full_text} -->\n")
elif btype == 'page_number':
md_lines.append(f"<!-- page: {full_text} -->\n")
else:
md_lines.append(full_text + "\n")
return '\n'.join(md_lines)
if __name__ == '__main__':
json_path = sys.argv[1]
md = json_to_markdown(json_path)
print(md)
+11861
View File
File diff suppressed because it is too large Load Diff
+43
View File
@@ -0,0 +1,43 @@
import json
json_path = r'D:\mineru_home\doclib\parsed\d9\d991db7dc971c6655661492bb28129f2089d03222b439064e30b7156ff1ba848\flash\1-10_1794301361022.json'
with open(json_path, 'r', encoding='utf-8') as f:
data = json.load(f)
def extract_text(content_list, depth=0):
"""Recursively extract text from content structure"""
result = []
for item in content_list:
if isinstance(item, dict):
if item.get('type') == 'text' and 'content' in item:
text = item['content']
if isinstance(text, str):
result.append(text)
elif 'content' in item:
result.extend(extract_text(item['content'], depth+1))
return result
# Check page 2
page2 = data['pages'][1]
print(f"=== Page 2 ===")
for i, block in enumerate(page2['blocks']):
btype = block.get('type', '?')
texts = extract_text(block.get('content', []))
full_text = ' '.join(texts)
if len(full_text) > 300:
full_text = full_text[:300] + '...'
print(f"[{btype}] {full_text}")
print()
# Also check page 3
page3 = data['pages'][2]
print(f"=== Page 3 ===")
for i, block in enumerate(page3['blocks']):
btype = block.get('type', '?')
texts = extract_text(block.get('content', []))
full_text = ' '.join(texts)
if len(full_text) > 300:
full_text = full_text[:300] + '...'
print(f"[{btype}] {full_text}")
print()
+120
View File
@@ -0,0 +1,120 @@
<!-- Page 1 -->
# Modern Non-destructive 李国华吴淼编著Testing & Evaluation现代无损检测与评价
<!-- footer: 化学工业出版社 -->
<!-- Page 2 -->
Modern Non-destructive Testing & Evaluation
# 现代无损检测与评价
本书是关于无损检测与评价的一本理论与实践并重、入门与提高相结合的著作,既注重基础知识和基本理论的介绍,又照顾实践的需要,同时还关注本学科的最新发展。
全书共分十章,第一章简要介绍了无损检测与评价的含义、特点、意义、现状与发展;第二章集中讨论了材料与构件中的各种常见缺陷;第三至第十章,分别讨论了超声、射线、磁粉、渗透、涡流、声发射、红外与激光全息这八种无损检测与评价的方法包括它们的物理基础、基本原理、设备、技术与工艺、特点与典型应用等内容,对超声、射线等五种常规方法,还分别介绍了它们的最新进展。
读者通过本书的学习,将对无损检测与评价的学科体系、现状与发展等方面有比较全面的了解,对超声、射线等无损检测与评价方法有比较深入的认识,为从事无损检测与评价的研究与实践打下比较坚实的基础。
本书既可用作有关专业的大学生和研究生学习无损检测与评价相关课程的教材或教学参考书,也可供工矿企业和科研院所从事无损检测研究与实践的广大工程技术人员学习参考。
ISBN 978-7-122-03681-0 ISBN 978-7-122-03681-0
<!-- footer: www.cip.com.cn读科技图书上化工社网 -->
<!-- footer: 9"787122"036810"> -->
<!-- footer: 销售分类建议:机械/检测技术 -->
<!-- footer: 定价:45.00元 -->
<!-- Page 3 -->
<!-- page: 北京 -->
<!-- header: Modern Non-destructive 李国华吴淼编著Testing & Evaluation -->
# 现代无损检测与评价
<!-- footer: 化学工业出版社 -->
<!-- Page 4 -->
图书在版编目(CIP)数据
现代无损检测与评价/李国华,吴淼编著.一北京:化学工业出版社,2008.10 ISBN 978-7-122-03681-0
I. 现…Ⅱ.① 李…②吴…Ⅲ.无损检验 Ⅳ.TG115.28
中国版本图书馆CIP数据核字(2008)第136083号
# 0平己鏈數子
责任编辑:周红
装帧设计:史利平
责任校对:郑捷
出版发行:化学工业出版社(北京市东城区青年湖南街13号邮政编码100011)
印 刷:北京永鑫印刷有限责任公司
装 订:三河市延风印装厂
787mm×1092mm 1/16 印张 20 字数 488千字
2009年1月北京第1版第1次印刷
购书咨询:010-64518888(传真:010-64519686)
售后服务:010-64518899
网址:http://www.cip.com.cn
凡购买本书,如有缺损质量问题,本社销售中心负责调换。
定 价:45.00元
版权所有违者必究
<!-- Page 5 -->
前言
无损检测与评价的技术体系庞大,全世界业已报道的无损检测与评价方法不下70种,其发展日新月异,新理论、新技术和新设备在源源不断地涌现。因此,要想用一本篇幅并不大的书籍反映无损检测与评价的全貌实非易事。本书的内容体系,是笔者在多年从事无损检测与评价的教学与科研的基础上,参考了国内外大量同类和相关著作后确定的。
撰写本书的构想大约萌生于2002年,但因笔者杂事较多而迟迟没有动笔,也正因为这几年的拖延,使本书有机会补充这段时间内的国内外最新进展。但有关无损检测与评价的最新文献可谓浩如烟海,虽想竭尽全力将其收集齐全,终因心有余而力不足未能如愿。因此,最新、最好的文献还有待读者自己去查阅、去选择,希望本书所列的信息资源能为读者查阅最新资讯提供一点方便。
全书共分十章,第一章是绪论部分,简要介绍无损检测与评价的含义、特点、现状与发展;第二章集中讨论材料与构件中的各种常见缺陷;第三章~第十章,分别讨论超声、射线、磁粉、渗透、涡流、声发射、红外与激光全息八种无损检测与评价方法,包括它们的物理基础、基本原理、设备、技术与工艺、特点与典型应用等内容。希望通过学习本书,读者能对无损检测与评价的学科体系、现状与发展等方面有一个比较全面而基本的了解,对超声、射线等无损检测与评价方法有比较深入的认识,为进行无损检测与评价的实践打下比较坚实的基础。应该说明,无损检测与评价既有较强的理论性,更有很强的实践性,现有的各类无损检测标准与规范是从事无损检测与评价实践的指南,但更多、更有效的检测技巧还需要大家在实践中学习、总结和提高。
本书得到了中国矿业大学(北京)2006年教材建设的重点立项资助,为此,本书编者感谢中国矿业大学(北京)机电与信息工程学院副院长钱旭教授,材料科学与工程系主任陈华辉教授和副主任马向东教授,学校教务处常维亚处长、丁钢副处长和戚鹏老师,校教材建设委员会以及副校长范迅教授等有关领导和专家的大力支持。
在资料收集过程中,笔者得到了本校图书馆的陈征和管向东老师、清华大学图书馆的王红和王蓉老师、新加坡国立大学的宋志刚博士和陈余峰博士、英国剑桥大学工程系的徐彦猛博士和材料科学与冶金系的王棒柱博士、北京交通大学曾凡仔博士等许多人的无私帮助,任玉锁博士为笔者提供了珍贵的射线探伤实例照片,材料科学与工程专业2001级本科生吕晓旸同学为查对有关无损检测与评价的最新标准付出了辛勤劳动,研究生于小川、宁华荣、马保全、温庆丰、聂锋、邓凡宇、黄永玲、曹党超、闫敏、刘国正在有关材料的特性数据的查找、收集、整理、翻译、校对和录入排版等方面给予了帮助,编者在此一并致谢。
书中不妥之处,敬请各位读者批评指正。
编著者
<!-- Page 6 -->
目录
<!-- Page 7 -->
<!-- Page 8 -->
<!-- Page 9 -->
<!-- Page 10 -->