那么二级Python程序设计到底考些什么呢?(推荐学习:Python视频教程)
1,程序设计基本理论和Python基本概述;
2,简单程序设计;
3,第三方库简单应用;
综上所述,建议考过多次和明年六月之前必须拿到证书的同学,可以考虑报两科,报一科你擅长的,再报一科python,原因很简单,因为刚开考,题库中题的套数比较少,便于大家掌握,哪怕背答案也可。
以下给大家提供一个考试真题(程序设计题)
# CalStoryOfStone3.py
import jieba
from wordcloud import WordCloud
excludes = {"什么","一个","我们","那里","你们","如今",
"说道","知道","老太太","起来","姑娘","这里",
"出来","他们","众人","自己","一面","太太",
"只见","怎么","奶奶","两个","没有","不是",
"不知","这个","听见"}
f = open("红楼梦.txt", "r", encoding="utf-8")
txt = f.read()
f.close()
words = jieba.lcut(txt)
newtxt = ' '.join(words)
wordcloud = WordCloud(background_color="white",
width=800,
height=600,
font_path="msyh.ttf",
max_words=200,
max_font_size=80,
stopwords = excludes,
).generate(newtxt)
wordcloud.to_file('红楼梦基本词云.png')
更多Python相关技术文章,请访问Python教程栏目进行学习!
以上就是小编分享的关于计算机二级python考试难吗的详细内容希望对大家有所帮助,更多有关python教程请关注环球青藤其它相关文章!