其他分享
首页 > 其他分享> > 【无标题】

【无标题】

作者:互联网

#1

print(r’“There is a will,\//\// there is a way!”’)

#2

t =input()

while t!="":

t=int(t)

if 0<=t<=12:

print(“GOOD MORNING!”)

elif 12 <= t < 18:

print(“GOOD AFTERNOON!”)

elif 18 <= t <=23:

print(“GOOD EVENING!”)

t = input()

#3

rmb=int(input())

s=“壹贰叁肆伍陆柒捌玖”

s1=s[rmb//10-1]+“拾”

if rmb%10!=0:

s1+=s[rmb%10-1]

print(“人民币:{}元整”.format(s1))

n=int(input())

pi=0

for i in range(1,n+1):

if i%2!=0:

pi+=1/(2*i-1)

else:

pi-=1/(2*i-1)

print("{:.10f}".format(4*pi))

#4

s =input()

while s!="#":

z=s[-1]

v=s.count(“1”)

if z==“e” and v%2==0:

s=s.replace(“e”,“0”)

if z==“e” and v%2!=0:

s=s.replace(“e”,“1”)

if z==“o” and v%2==1:

s=s.replace(“o”,“0”)

if z==“o” and v%2!=1:

s=s.replace(“o”,“1”)

print(s)

s= input()加粗样式

标签:v%,int,无标题,replace,print,input,pi
来源: https://blog.csdn.net/weixin_44729243/article/details/122054528