n=float(input('请输入一个2位小数:')) yuan=int(n) jiao=int(n*10)%10 fen=int(n*100)%10 print('对应人民币为:{}元{}角{}分'.format(yuan,jiao,fen))