摘要:
方法1 # include // 判断一个数是不是素数 bool IsPrime(int m) { int i; for (i=2; i<m; i++) { if (m%i == 0) break; } if (m == i) return true; else return false; } in 阅读全文
摘要:
# include bool IsPrime(int val) { int i; for(i = 2; i <= val; i++) { if (val % i == 0) break; } if( i == val) return true; else return false; } int ma 阅读全文
摘要:
#include<stdio.h> #include<math.h> #include<sys/time.h> #include<unistd.h> int main() { struct timeval tv1,tv2; struct timezone tz; int t,i,j,n; int c 阅读全文
摘要:
1、中文分词 #库的调用 from wordcloud import WordCloud import jieba import numpy as np from PIL import Image from matplotlib import colors #需要生成词库的文本打开 with ope 阅读全文