while True: s = input('?') if len(s)==1: break print(s)
时间尾巴空一格,右对齐
import time while True: t = time.time() s = input('?') if len(s)==1: break print(s) print(time.time()-t)