摘要: Intro Resources to learn more Nonsubscribers may access these resources for free, but if a site limits the number of free articles per month and you a 阅读全文
posted @ 2022-02-27 13:16 Wdv_Jo 阅读(141) 评论(0) 推荐(0)
摘要: Intro R为数据分析提供了方便的统计功能,可用于创建高级数据可视化。查看这些资源以了解有关 R 的更多信息: The R Project for Statistical Computing:下载 R、文档和帮助的网站 R 手册:R 核心团队手册的链接,包括介绍、管理和帮助 Coding Club 阅读全文
posted @ 2022-02-27 13:13 Wdv_Jo 阅读(231) 评论(0) 推荐(0)
摘要: from math import fabs n=int(input()) #多行输入 i=1 lstfnl=[] while i<=n: lst=[] nlst=[] x=list(input().split()) for m in x: m=eval(m) nlst.append(m) i+=1 阅读全文
posted @ 2019-04-11 11:21 Wdv_Jo 阅读(809) 评论(0) 推荐(0)
摘要: while True: x=input() if x!=' ': lst=list(x.split(' ')) a,b,c=int(lst[0]),int(lst[1]),int(lst[2]) pb=[] for tt in range(10,101): if (tt-a)%3==0: if (t 阅读全文
posted @ 2019-04-11 11:18 Wdv_Jo 阅读(627) 评论(0) 推荐(0)
摘要: from math import sqrt item=[] for yr in [1988,1989]: for mth in range(1,13): if mth in [1,3,5,7,8,10,12]: for dy in range(1,32): item.append([str(yr), 阅读全文
posted @ 2019-04-11 11:17 Wdv_Jo 阅读(231) 评论(0) 推荐(0)
摘要: #用递推法计算sinx的级数 from math import fabs x=float(input()) count=x n=x i=1 while fabs(n)>=1e-8: n=-x**2*n/(2*i*(2*i+1)) count+=n i+=1 print('{:.1f}'.format 阅读全文
posted @ 2019-04-11 11:15 Wdv_Jo 阅读(563) 评论(0) 推荐(0)
摘要: adict={} x=input().lower() #把单词大写字母改为小写字母 for i in x: if i in [',','.',"'",'"','!']: x=x[:x.index(i)]+x[x.index(i)+1:] #把句子中的非字母字符用切片操作删掉 aset=set(x.s 阅读全文
posted @ 2019-04-11 11:13 Wdv_Jo 阅读(243) 评论(0) 推荐(0)
摘要: def gcd(x,y): "求x和y的最大公约数,应用辗转相除法" #辗转相除法:被除数和除数的最大公约数等于除数和余数的最大公约数; #暴力穷举法:a=min(x,y) 另一种写法:a=x if x<y else y,每次循环a-=1直到x%a==0 and y%a==0 #最小公倍数=x*y/ 阅读全文
posted @ 2019-04-11 11:02 Wdv_Jo 阅读(2123) 评论(0) 推荐(0)
摘要: n=int(input()) a=[] for i in range(n): #循环体里面加入input()可以实现一共执行n次input() lst=[int(x) for x in input().split()] a.append(lst) #用列表解析,两层列表代表行列,很巧妙的方法 w=0 阅读全文
posted @ 2019-04-11 10:32 Wdv_Jo 阅读(437) 评论(0) 推荐(0)
摘要: 题型:输入矩阵,求对角线之和 思路(模型): i=0 while i<3: x=input() i+=1 print(x) 可以实现输入三行,最后输出最后一个x x=int(input()) m,i=0,1 #i:行数,m:这一列的第几个要加 lst=[] while i<=x: ln=input( 阅读全文
posted @ 2019-04-07 17:15 Wdv_Jo 阅读(9051) 评论(0) 推荐(0)