python生成epub电子书
scturtle
posted @ 2011年9月10日 15:17
in python
, 7743 阅读
epub格式其实就是个zip压缩包,用python也不过是一些简单的文件操作
一个简单的解压后的epub目录树:
tmp │─ META-INF │ └─ container.xml (固定内容文件) │─ mimetype (固定内容文件) └─ OPS │─ 1.txt.xhtml (html文件) │─ 2.txt.xhtml (html文件) │─ content.ncx (目录文件!) │─ content.opf (信息及内容文件!) └─ cover.jpg (封面,可选,位置啊名字啊都不太重要)
一个示例: gist
2022年9月19日 17:02
Electricity and circuits, magnetism, motion and distance measurements, light, shadows, and reflection are among the subjects covered in CBSE Board Class 6th Standard Physical Science. Every student has access to Set-wise Sample Papers that have been created and recommended by board professionals. CBSE Class 6 Physics Question Paper For self-preservation at home, the teaching staff of various schools created and recommended the chapter-wide key questions and sample test questions for Part-A, Part-B, Part-C, and Part-D examinations.