【python】由一个小例子看出python的灵活性,IF ELSE一例时间:2023-03-09 04:36:09 temp = input("请输入1到100之间的数字:") num = int(temp) if 1 <= num <= 100: # 这一点给赞 省得用 and 或 &了 print('你妹好漂亮^_^') # tab键,还有“:” else: print('你大爷好丑T_T') # tab键 还有“:”