摘要:
n=input()m=list(str(n))if (m[0]=='Q' or m[0]=='q'): if (m[1]=='s' or m[1]=='S'): if (m[2]=='2'): if (m[3]=='X' or m[3]=='x'): print('验证码正确') else: pri 阅读全文
摘要:
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)) 阅读全文
摘要:
n = int(input())pro = 1for i in range(1,n+1): pro = pro * iprint(pro) 阅读全文
摘要:
str = input("")print(str[::-1]) 阅读全文
摘要:
n=float(input())print(format(n, '.3f')) 阅读全文
摘要:
x = float(input ())y = float(input ())S = round(x*y,2)print(S) 阅读全文
摘要:
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=' 阅读全文
摘要:
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% 阅读全文
摘要:
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* 阅读全文
摘要:
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("配对 阅读全文