【无标题】

#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()加粗样式

上一篇:第10讲 元件的替换与更新


下一篇:JavaScript正则表达式精简