#温度转换 name1=int(input(‘请输入一个华氏温度:‘)) name2=int(input(‘请输入一个摄氏温度:‘)) #华氏温度转摄氏温度公式 F1= round(5/9*(name1-32),3) #摄氏温度转华氏温度公式 F2=round(name2*9/5+32,3) # print(‘华氏温度{}转为摄氏温度:{}‘.format(name1,F1)) print(‘摄氏温度{}转为华氏温度:{}‘.format(name2,F2))
name1=input(‘请输入一个名字:‘) name2=input(‘再输入一个名字:‘) position=input(‘请输入一个地方:‘) print(‘\{}在{}散步,看到一个小孩因为迷路了在草坪哭着。这时候走来一个叫{}的人,他们两个人一起帮助小孩找到了家人并且互相留了微信。最后两人因为互相欣赏对方的善良在一起了。\n\n‘.format(name1,position,name2))
原文:https://www.cnblogs.com/ccyyjj/p/9597485.html