Java Note TOC

按阮一峰老师的规则,从Java Tutorial 中抽出一个简单的目录,借助Python程序,生成符合要求的 Markdown 文本。

上午编写的Java Env一节,文字太多,而且多是转载,已经违背了 Notebook 的规划,以后只记录关键的步骤和代码,时间有限。

ThinkingDuke

原始目录:

- Java
  - start
  - language
    - Java Basics
    - Working with Java Data Types
    - Using Operators and Decision Constructs
    - Creating and Using Arrays
    - Using Loop Constructs
    - Working with Methods and Encapsulation
    - Working with Inheritance
    - Handling Exceptions
  - class
    - Java Class Design
    - Advanced Class Design
    - Object-Oriented Design Principles
    - Generics and Collections
    - String Processing
    - Exceptions and Assertions
    - Java I/O Fundamentals
    - Java File I/O (NIO.2)
    - Building Database Applications with JDBC
    - Threads
    - Concurrency
    - Localization
  - collection
  - datetime
  - deployment
  - exam
    - Language Enhancements
    - Design Patterns
    - Database Applications with JDBC
    - Concurrency
    - Localization
    - Java File I/O (NIO.2)

打印Markdown链接:

toc = ['array','class','collection','concurrency','data','datetime','deployment','env','exception','generics','io','jdbc','localization','loop','method','object','operator','pattern','start','string','threads']
for t in toc:
    #print "[" + t.capitalize() + "]"
    print "(#docs/" + t + ")"

结果:

## 目录
1. [Preface](#README)
1. [Env](#docs/env)
1. [Start](#docs/start)
1. [Data](#docs/data)
1. [Operator](#docs/operator)
1. [Array](#docs/array)
1. [Loop](#docs/loop)
1. [Method](#docs/method)
1. [Inheritance](#docs/inheritance)
1. [Exception](#docs/exception)
1. [Class](#docs/class)
1. [Pattern](#docs/pattern)
1. [Object](#docs/object)
1. [Generics](#docs/generics)
1. [Collection](#docs/collection)
1. [String](#docs/string)
1. [IO](#docs/io)
1. [JDBC](#docs/jdbc)
1. [Threads](#docs/threads)
1. [Concurrency](#docs/concurrency)
1. [Datetime](#docs/datetime)
1. [Deployment](#docs/deployment)
1. [Localization](#docs/localization)

Got Something To Say:

Your email address will not be published. Required fields are marked *

*

© 2006-2018. Powered by WordPress Romangie & Bootstrap. ICP No. 15008795