Skip to content
成语接龙
Python
Branch: master
Clone or download
WangYihang Update README.md
Signed-off-by: WangYihang <wangyihanger@gmail.com>
Latest commit 35b2d7d Jun 23, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
IdiomsSolitaire.py fix a logic bug and fix bad chars May 16, 2017
README.md Update README.md Jun 23, 2018
data.txt Init commit May 15, 2017
requirements.txt [+] Add requirements.txt Jun 23, 2018

README.md

IdiomsSolitaire

一个成语接龙小脚本

API Usage

# Install it first
pip install IdiomsSolitaire
# Use it in your python source code
>>> import IdiomsSolitaire
>>> IdiomsSolitaire.init()
>>> print IdiomsSolitaire.guess("一心一意")

Script Usage

# Install it first
pip install -r requirements.txt
# Use it in your termianl
$ python IdiomsSolitaire.py
Usage : 
        python IdiomsSolitaire.py [Idioms]
Example : 
        python IdiomsSolitaire.py '一心一意'
Author : 
        WangYihang <wangyihanger@gmail.com>
$ python IdiomsSolitaire.py '一心一意'
[+] Init finished! [23594] words.
[一语破的] : [一句话就击中要害。的,箭靶的中心,比喻要害之处。]
$ python IdiomsSolitaire.py '一心一意'
[+] Init finished! [23594] words.
[一至於此] : [竟到如此地步。]
You can’t perform that action at this time.