Home > other >  Man-machine interactive applet - python basic statement
Man-machine interactive applet - python basic statement

Time:10-07

The import time


Def Do_you_love_me () :
Inp=input (' Do you love me? (Yes or no? \ n ')
Y=[' yes', 'yes',' yes', 'yes',' yes', 'yes',' yes', 'yes']
If inp in Y:
How=input (" how deep is your love to me? (A lot or A little) \ n ')
If 'lot' in how:
Time. Sleep (3)
For I in range (5) :
Print (' hey! 'and end=' ')
Time. Sleep (1)
I +=1
Print (' \ n \ n ')
T=5
I=0
While (i<) :
Ch='super'
Hao='good-looking'
Print (' oh, are you a % s to % s fairy? '% (ch * I, hao))

Time. Sleep (abs (t))
I +=1
T=1
-Time. Sleep (3)
Print (' # # # # # # # # # # \ n ')
Print (' bah, don't boast! Ha ha ha ha ha ha ha ha!!!!!!!!!!! \ n ')
Print (' ^ ^ ^ ^ ^ ^ \ n ')

The else:
Print (' you must ignore what, let's again: ')
Do_you_love_me ()
The else:
Print (' you may not be careful the topic, let's try again: ')
Time. Sleep (2)
Do_you_love_me ()

If __name__=="__main__ ':
Hi=Do_you_love_me ()
  • Related