03 2020 档案
天天向上的力量终于好了!!
摘要:N = eval(input(""))x = pow((1+N/1000),364)y = pow((1-N/1000),364)z = int(x/y)print("{:.2f}, {:.2f}, {}".format(x,y,z)) 阅读全文
posted @ 2020-03-24 22:38 叫你一声你敢应吗 阅读(131) 评论(0) 推荐(0)
阶乘
摘要:n = int(input())pro = 1for i in range(1,n+1): pro = pro * iprint(pro) 阅读全文
posted @ 2020-03-24 20:10 叫你一声你敢应吗 阅读(94) 评论(0) 推荐(0)
输出逆序字符
摘要:str = input("")print(str[::-1]) 阅读全文
posted @ 2020-03-24 20:09 叫你一声你敢应吗 阅读(111) 评论(0) 推荐(0)
格式化输出
摘要:n=float(input())print(format(n, '.3f')) 阅读全文
posted @ 2020-03-24 20:06 叫你一声你敢应吗 阅读(94) 评论(0) 推荐(0)
矩阵面积计算
摘要:x = float(input ())y = float(input ())S = round(x*y,2)print(S) 阅读全文
posted @ 2020-03-24 20:00 叫你一声你敢应吗 阅读(400) 评论(0) 推荐(0)
字符串反码
摘要:str1=input()for i in str1: if 'a'<=i<='z': print(chr(ord('z')-(ord(i)-ord('a'))),end='') elif 'A'<=i<='Z': print(chr(ord('Z')-(ord(i)-ord('A'))),end=' 阅读全文
posted @ 2020-03-24 19:59 叫你一声你敢应吗 阅读(112) 评论(0) 推荐(0)
快乐数字
摘要:num=eval(input())i=0x=num%10y=(num-x)/10%10z=(num-10*y-x)/100%10num=x**2+y**2+z**2while num!=1 and i<100: x=num%10 y=(num-x)/10%10 z=(num-10*y-x)/100% 阅读全文
posted @ 2020-03-24 19:58 叫你一声你敢应吗 阅读(102) 评论(0) 推荐(0)
同符号数学运算
摘要:N=eval(input()) t=0if N<0: n1=-N+10 n2=-N-10 n3=-N*10 t=-1 else: n1=N+10 n2=N-10 n3=N*10 t=1if n1<0: n1=-n1if n2<0: n2=-n2if n3<0: n3=-n3print(t*N,n1* 阅读全文
posted @ 2020-03-24 19:57 叫你一声你敢应吗 阅读(105) 评论(0) 推荐(0)
括号配对检测
摘要:str=input("") t=0 for i in str: if i== "(" : t+=1 elif i== ")" : if t>0: t-=1 elif t<=0: print("配对不成功") break else: continue else: if t!= 0: print("配对 阅读全文
posted @ 2020-03-24 19:56 叫你一声你敢应吗 阅读(96) 评论(0) 推荐(0)
凯撒密码
摘要:plaincode = input("")for p in plaincode: if ord("a") <= ord(p) <= ord("z"): print(chr(ord("a")+(ord(p)-ord("a")+3)%26),end='') elif ord("A") <= ord(p) 阅读全文
posted @ 2020-03-24 19:55 叫你一声你敢应吗 阅读(266) 评论(0) 推荐(0)
Great China !!! (国旗送上)
摘要:import turtle #the backgroundturtle.pensize(1)turtle.color('red')turtle.begin_fill()turtle.setup(1000,1000,0,0)turtle.penup()turtle.goto(0,0)turtle.pe 阅读全文
posted @ 2020-03-24 15:13 叫你一声你敢应吗 阅读(254) 评论(0) 推荐(0)
画出同心圆
摘要:import turtle min=eval(input())x=eval(input())turtle.color(input(""))turtle.pensize(10)for i in range(x): turtle.penup() turtle.goto(0,-(20+min)*(i+1) 阅读全文
posted @ 2020-03-22 17:53 叫你一声你敢应吗 阅读(144) 评论(0) 推荐(0)
欢迎你的光临
摘要:x=input()print("欢迎你,"+x+"同学!") 阅读全文
posted @ 2020-03-19 22:19 叫你一声你敢应吗 阅读(82) 评论(0) 推荐(0)
m与n的关系 ,就如你我间的关系一般缠绵不休,搞得我头痛
摘要:m=eval(input ())n=eval(input ())n1=m+nn2=m*nn3=pow(m,n)n4=n/mn5=max(m,n)print(int(n1),n2,n3,int(n4),n5) 阅读全文
posted @ 2020-03-19 21:59 叫你一声你敢应吗 阅读(503) 评论(0) 推荐(0)
您好陌生人
摘要:print('世界,你好!') 阅读全文
posted @ 2020-03-19 21:54 叫你一声你敢应吗 阅读(78) 评论(0) 推荐(0)
n的多次方
摘要:n=eval(input())n1=pow(n,0)n2=pow(n,1)n3=pow(n,2)n4=pow(n,3)n5=pow(n,4)n6=pow(n,5)print(n1,n2,n3,n4,n5,n6) 阅读全文
posted @ 2020-03-19 21:49 叫你一声你敢应吗 阅读(127) 评论(0) 推荐(0)
跟你说局心里话:老师您好!
摘要:y=input("")x=input("")t=",我想对你说,"final=y+t+xprint(final) 阅读全文
posted @ 2020-03-19 21:47 叫你一声你敢应吗 阅读(98) 评论(0) 推荐(0)
绘画等边三角形
摘要:import turtle turtle.color=('green')turtle.pensize(2) turtle.fd(200)for i in range(2): turtle.rt(120) turtle.fd(200) turtle.rt(60)turtle.fd(200) for i 阅读全文
posted @ 2020-03-19 21:42 叫你一声你敢应吗 阅读(149) 评论(0) 推荐(0)
绘画六角形
摘要:import turtle turtle.pensize(3)turtle.rt(120)turtle.fd(400)for i in range(2): turtle.rt(120) turtle.fd(600)turtle.rt(120)turtle.fd(200)turtle.lt(60)tu 阅读全文
posted @ 2020-03-19 21:40 叫你一声你敢应吗 阅读(231) 评论(0) 推荐(0)
绘画五角星
摘要:import turtle turtle.color('black','red')turtle.pensize(10)turtle.begin_fill()for i in range(5): turtle.fd(200) turtle.rt(144) turtle.end_fill() 阅读全文
posted @ 2020-03-19 21:37 叫你一声你敢应吗 阅读(87) 评论(0) 推荐(0)