《Information Science》The Code Of Drag And Drop Too many filling blanks and selections, I want to make an application to solve it. 在学生手册和实验报告中,遇到很多填空及选择题,我想制作一个应用程序 It is done in pgzero. 来解决它。在pgz…
《Information Science》The Code Of Connecting Lines For Excercise
Some excercise need connecting lines,here the code: 制作一些连线题的例子,一些地方用得着:
import pgzrun
from pgzrun import *
from random import randint
#import os
#os…
原题链接
Problem Description Wang Haiyang is a strong and optimistic Chinese youngster. Although born and brought up in the northern inland city Harbin, he has deep love and yearns for the boundless oceans. After graduation, he came to a coastal city and …
判断一个非负序列是否为某简单图的度序列有两种方法 import numpy as np
import networkx as nx
import matplotlib.pyplot as pltdef hh_algorithm(graph_list):"""Havel-Hakimi algorithm:param graph_list: 非负序列:return: 是否可图True or False"&qu…