- Today I wasted a lot of time ,but I had a call with a Ydg who want to be pilot.That's really cool.
- The second meaningful thing is I met a interesting book named Xiang Ta lan ,It's really attractive for me,I'll read it in my free time.
- Today we finished choose the next term classes,It't too much,about 31points class,I hope I can reach the 2023 alive .
-
The follow is function which contral users' input:
def inputbox(showstr,showorder,length): instr = input(showstr) #The input function require users enter information,showstr is give hint if len(indtr)!=0: # There're three ways of check :1 digit ,nolimits 2 letter 3 digit and has limit if showorder ==1: if str.isdigit(instr): if instr ==0: print("\033[1;31;40m enter is zero,Please renter \033[0m") return "0" else: return instr else: print("Illegal input,renter please") return "0" if showstr ==2: if str.isalpha(instr): if len(instr)!= length: # check the limit print("Must "+str(length)+"alpha,renter please!") return "0" else: return instr else: print("Illegal inut,renter please") return "0" if showstr ==3: if str.isdigit(instr): if len(instr)!= length: print("The input must be "+str(length)+" numbers,try again please ") return "0" else: return instr else: print("Illegal input,try again please") return "0" else: print("Input is black,try again please!") return "0" print("Hi") inputbox(showstr,showorder,length)
Everything in life happens according to our time ,our clock.
-
CopyProjectEnterpriseCode2
python
72 views