temp = input("请输入1到100之间的数字:")num = int(temp)if 1 <= num <= 100: # 这一点给赞 省得用 and 或 &了 print('你妹好漂亮^_^') # tab键,还有“:”else: print('你大爷好丑T_T') # tab键 还有“:” 转载于:https://www.cnblogs.com/GiraffaMPRO/p/6011749.html