mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
fix a test script in jieba3k
This commit is contained in:
parent
aae91b6fb6
commit
273996f7d4
@ -5,7 +5,7 @@ import jieba
|
||||
|
||||
def cuttest(test_sent):
|
||||
result = jieba.cut(test_sent)
|
||||
print " ".join(result)
|
||||
print(" ".join(result) )
|
||||
|
||||
def testcase():
|
||||
cuttest("这是一个伸手不见五指的黑夜。我叫孙悟空,我爱北京,我爱Python和C++。")
|
||||
@ -22,6 +22,6 @@ def testcase():
|
||||
if __name__ == "__main__":
|
||||
testcase()
|
||||
jieba.set_dictionary("foobar.txt")
|
||||
print "================================"
|
||||
print("================================")
|
||||
testcase()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user