标签:for inpu end bsp 符号 code color class -o
同符号数学
N=int(input()) if N>=0: print(N, N+10, abs(N-10), N*10) else: print(-N, -(abs(N)+10), -abs((abs(N)-10)), N*10)
恺撒密码
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) <= ord("Z"): print(chr(ord("A")+(ord(p)-ord("A")+3)%26), end=‘‘) else: print(p, end=‘‘)
天天向上
x=1.0 N=eval(input()) n=N/1000 dayup=pow(x+n,365) daydown=pow(x-n,365) a=dayup//daydown print("{:.2f}, {:.2f}, {:}".format(dayup,daydown,round(a)))
标签:for inpu end bsp 符号 code color class -o
原文地址:https://www.cnblogs.com/nicaihui/p/12749376.html