摘要:
python 实现 num=int(input()) lst=[] for i in range(num): s=input() gender=int(s.split(" ")[0]) # 1是男生 0是女生 height=int(s.split(" ")[1]) weight=int(s.spli 阅读全文
摘要:
python 实现 s=input() a=int(s.split(" ")[0]) b=int(s.split(" ")[1]) for i in range(a+b): print("Wang!",end="") 阅读全文
摘要:
python 实现 num=int(input()) lst=[] for i in range(num): s=input() name=str(s.split(" ")[0]) breath=int(s.split(" ")[1]) pulse=int(s.split(" ")[2]) if b 阅读全文
摘要:
python 实现 num=int(input()) lst=[] for i in range(num): s=input() gender=str(s.split(" ")[0]) height=float(s.split(" ")[1]) if gender=="M": lst.append( 阅读全文
摘要:
python 实现 sr=str(input()) count=1 for i in sr: if i==' ': count+=1 for i in range(count): temp=int(sr.split(' ')[i]) if temp==250: print("{}".format(i 阅读全文
摘要:
python实现 str=input() fenzi=int(str.split(" ")[0]) fenmu=int(str.split(" ")[1]) if fenmu==0: print("{fenzi}/{fenmu}=Error".format(fenzi=fenzi,fenmu=fen 阅读全文
摘要:
python 实现 num = int(input()) str = input() odd=0 even=0 for i in range(num): temp=int(str.split(" ")[i]) if temp%2==0: even+=1 else: odd+=1 print("{od 阅读全文