面试题答案一键面试num = 3.1415926 if num < 1: print('小于1:%.3f%%' % (num * 100)) else: print('%.3f%%' % (num * 100))