摘要: list1=[]for j in range(1,100): list1.append(j)list2=[]sum1=int(input("输入一个数字:")) #定义一个int类型i=0while(i<=len(list1)): #对输入的数字进行判断,若列表中的数字大于该值,则从该列表中提取出来 阅读全文
posted @ 2022-09-29 23:18 努力的阿坤 阅读(710) 评论(0) 推荐(0)
摘要: #绘制饼状图 import matplotlib.pyplot as pltimport numpy as npman=2245505woman=3254584man_prec=man/(man+woman)woman_prec=woman/(man+woman)labels=['男','女']co 阅读全文
posted @ 2022-09-29 23:15 努力的阿坤 阅读(277) 评论(0) 推荐(0)