- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 命令行实现有道英汉字典
原理:利用网页有道词典,进行网页解析。 import urllib.request import re,os from sys import argv regulation = ''' 规则: 1. 只准输入英文和数字。 2. 数字最大不超过10^19. 3. 由于argv的关系,我只接收一个单词。 4. 可以接收有连字符的单词。 ''' def lookUp(word):
2014-09-02 16:09:03 603
Python Algorithms
注意:是英文版的!
从python角度出发的算法介绍。
目录:
Contents at a Glance
Contents...................................................................................................................vi
About the Author ...................................................................................................xiii
About the Technical Reviewer ............................................................................... xiv
Acknowledgments .................................................................................................. xv
Preface .................................................................................................................. xvi
■ Chapter 1: Introduction........................................................................................1
■ Chapter 2: The Basics ..........................................................................................9
■ Chapter 3: Counting 101 ....................................................................................45
■ Chapter 4: Induction and Recursion … and Reduction......................................71
■ Chapter 5: Traversal: The Skeleton Key of Algorithmics .................................101
■ Chapter 6: Divide, Combine, and Conquer........................................................125
■ Chapter 7: Greed Is Good? Prove It!.................................................................151
■ Chapter 8: Tangled Dependencies and Memoization .......................................175
■ Chapter 9: From A to B with Edsger and Friends.............................................199
■ Chapter 10: Matchings, Cuts, and Flows .........................................................221
■ Chapter 11: Hard Problems and (Limited) Sloppiness .....................................241
■ Appendix A: Pedal to the Metal: Accelerating Python .....................................271
■ Appendix B: List of Problems and Algorithms .................................................275
■ Appendix C: Graph Terminology.......................................................................285
■ Appendix D: Hints for Exercises.......................................................................291
■ Index ................................................................................................................307
www.it-ebooks.info
■ CONTENTS
vi
Contents
Contents at a Glance.................................................................................................v
About the Author ...................................................................................................xiii
About the Technical Reviewer ............................................................................... xiv
Acknowledgments .................................................................................................. xv
Preface ..................................................................................................................
2014-10-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人