资源简介
《Swift语言》中文版API
代码片段和文件信息
#!/usr/bin/python
# coding:utf-8
import os
def iter(path):
for root dirs files in os.walk(path):
for fn in files:
if fn.endswith(“.html“):
with open(root + ‘/‘ + fn ‘r‘) as f:
content = f.read()
content = content.replace(‘ript src=“https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/ace.js“> ript>‘ ‘ript src=“http://cdn.bootcss.com/ace/1.1.3/ace.js“> ript>‘).replace(‘ript src=“https://cdnjs.cloudflare.com/ajax/libs/ace/1.1.3/mode-javascript.js“> ript>‘ ‘ript src=“http://cdn.bootcss.com/ace/1.1.3/mode-javascript.js“> ript>‘)
insert_pos = content.find(““ content.find(“Generated using GitBook“)) + 6
content = content[:insert_pos] + ‘‘‘yle=“margin-left:15%;“> rame src=“http://ghbtns.com/github-btn.html?user=numbbbbb&repo=the-swift-programming-language-in-chinese&type=watch&count=true&size=large“
allowtransparency=“true“ frameborder=“0“ scrolling=“0“ width=“170“ height=“30“> rame> ‘‘‘ + content[insert_pos:]
content.replace(r‘tle>.*? tle>‘ “tle>《The Swift Programming Language》完整中文版 tle>“)
with open(root + ‘/‘ + fn ‘w‘) as f:
f.write(content)
iter(os.getcwd())
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\
文件 17 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\CNAME
文件 4521 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\README.md
目录 0 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\Using Swift with Cocoa and ob
目录 0 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\Using Swift with Cocoa and ob
文件 3726 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\Using Swift with Cocoa and ob
目录 0 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\Using Swift with Cocoa and ob
文件 25673 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\Using Swift with Cocoa and ob
文件 0 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\Using Swift with Cocoa and ob
文件 90275 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\Using Swift with Cocoa and ob
文件 1314 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\change_cdn.py
目录 0 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter1\
文件 26836 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter1\01_swift.html
文件 53334 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter1\02_a_swift_tour.html
文件 24645 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter1\chapter1.html
目录 0 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\
文件 65854 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\01_The_Basics.html
文件 46148 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\02_Basic_Operators.html
文件 46496 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\03_Strings_and_Characters.html
文件 49080 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\04_Collection_Types.html
文件 70515 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\05_Control_Flow.html
文件 56898 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\06_Functions.html
文件 46304 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\07_Closures.html
文件 39367 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\08_Enumerations.html
文件 52198 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\09_Classes_and_Structures.html
文件 48452 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\10_Properties.html
文件 42319 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\11_Methods.html
文件 33897 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\12_Subsc
文件 41610 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\13_Inheritance.html
文件 65410 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\14_Initialization.html
文件 31756 2014-06-13 04:35 the-swift-programming-language-in-chinese-gh-pages\chapter2\15_Deinitialization.html
............此处省略122个文件信息
相关资源
- OpenFOAM编程指南中文版.pdf
- BT1120 行业协议标准 中文版
- BP世界能源展望2019年版中文版.pdf
- ONVIF2.0协议中文版本珍藏版
- Bladegen之叶片泵叶片建模中文版
- Xshell3b0281Windows平台下中文版SSH连接工
- 仪表放大器应用工程师指南----ADI的巨
- TOGAF9.1 中文版二.pdf
- protege4.0中文版教程
- fileZilla_Server 中文版与英文版
- tensorflow中文文档.pdf
- Niagara驱动开发英文版+中文版自己学习
- PDF虚拟打印机专业中文版-支持x64系统
- MongoDB实战中文版.pdf (带书签目录)
- 计算机科学导论第三版答案中文版
-
Using UML : software engineering with ob
jec - 《Struts in Action中文版》真正完整版
- CMMI_for_Development_v1-3_Simplified_Chinese
- MPLAB_X_IDE用户指南(中文版)
- pyton tkinter参考手册中文版软件直译
- freeRTOS操作系统详解中文版
- ISO15765中文版协议解析
- opengl的OpenGL教程中文版
- keithley2000系列中文版说明
- 激光测距模组LRF3020 5020操作手册中文
- Linux Device Drivers 3rd(中文版-很好)
- EasyBCD2.4 简体中文版
- Logback手冊高清中文版
- INTEL开发手册卷3(中文版).pdf
- Google大数据三大论文 三合一 中文版
评论
共有 条评论