摘要:
import jieba text=open('D:/红楼梦/红楼梦.txt',"r",encoding='utf-8').read() words=jieba.lcut(text) counts={} for word in words: if len(word)==1: #排除带个字符的分词效果 阅读全文
摘要:
from random import random from time import perf_counter DARTS = 1000*1000*10 hits = 0.0 start = perf_counter() for i in range(1, DARTS+1): x, y = rand 阅读全文