Is it useful to take the python level 2 test? The usefulness of the python level 2 test

Hello everyone, let me share with you how long it takes to pass the python level 2 test. Many people don't know this yet. Explain in detail below. Let's see now!

In September 2018, the National Computer Rank Examination added a second-level computer Python programming test subject. Judging from the previous test situation, the test is not difficult, especially the test content is relatively small, so the pass rate is as high as 54% (other subjects under 30%) PYTHON LIBRARY "IMITATION" .

5d20100928215781.jpg

So what exactly is the second-level Python programming test? (Recommended study: Python video tutorial)

1. The basic theory of programming and the basic overview of Python;

2. Simple program design;

3. Simple application of third-party libraries;

To sum up, it is recommended that students who have taken the exam many times and must obtain a certificate before June next year may consider applying for two subjects, one subject you are good at, and another subject python. The reason is very simple, because the test has just started, There are relatively few sets of questions in the question bank, which is easy for everyone to grasp, even if you memorize the answers, you can ```*``

The following is a real test question (programming question) for everyone # CalStoryOfStone3.py

import jieba

from wordcloud import WordCloud

excludes = {"what", "one", "us", "there", "you", "now", \

"Say", "know", "old lady", "get up", "girl", "here", \

"Come out", "they", "everyone", "myself", "one side", "wife", \

"I see", "how", "grandma", "two", "no", "not", \

"I don't know", "this", "heard"}

f = open("Dream of Red Mansions.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('Dream of Red Mansions basic word cloud.png')

For more Python-related technical articles, please visit the Python tutorial column to learn!

The above is the detailed content of the second-level computer python exam, please pay attention to other related articles on php Chinese website for more information!

article_wechat2021.jpg?1111

This article was originally published on php Chinese website, please indicate the source for reprinting, thank you for your respect!

Guess you like

Origin blog.csdn.net/mynote/article/details/132424103