我正在制作一个仅出于娱乐目的的程序,但是我无法设置输入功能。
import sys
import time
def ynf():
unsw = input('do you want the future to be told. 0=no 1=yes')
if unsw == 0:
print('okie dokie')
time.delay(5)
sys.exit('byeeeee')
elif unsw ==1 :
print ('okie')
main()
def main():
PName = input('what is your name?')
print ('WTF '+PName+' sounds like crap,but ok')
ynf()
我只有这个。我已经搜索了一些答案,但是...
do you want the future to be told. 0=no 1=yes0
Process finished with exit code 0