摘要: import numpy as np ls1 = [10, 42, 0, -17, 30] nd1 =np.array(ls1) print(nd1) print(type(nd1)) fig = plt.figure() ax = fig.add_subplot(2, 2, 1) y = np.r 阅读全文
posted @ 2020-11-23 18:54 NIUFI 阅读(42) 评论(0) 推荐(0)
摘要: # -*- encoding:utf-8 -*- ''' 模拟羽毛球竞技 ''' # 比赛规则: # 2. 前四局采用21分制,每个队只有在赢得至少21分,且同时超过对方2分时才胜一局 from random import random from time import time def print 阅读全文
posted @ 2020-11-23 08:36 NIUFI 阅读(43) 评论(0) 推荐(0)