求教
qpython吧
全部回复
仅看楼主
level 4
勤奋的wobh 楼主
love = '彭斌'
woai = input('我喜欢的人是谁')
while true:
if woai == love:
break
woai = input('必须要答对才能退出哦')
print '回答正确'
哪里错了?
2016年04月11日 13点04分 1
level 5
看图,把文字改改就好
2016年04月11日 15点04分 2
while 判断用错了,条你为真直接退出了,为假又不能进入 if …else…语句所以是错的,不过排版是正确的
2016年06月09日 04点06分
谢谢
2016年06月09日 04点06分
level 5
if elif else 语句错了
2016年06月04日 17点06分 3
level 5
#-*-coding:utf8;-*-
#qpy:2
#qpy:console
print "判断我喜欢的人是谁???"
love='彭斌'
woai=raw_input('我喜欢的人是谁:')
xh0=0
while xh0<1:
xh0=xh0+1
if woai!=love:
print ('必须要答对才能退出哦!'),
woai=raw_input('我喜欢的人到底是谁?请输入:')
xh0=0
print '恭喜你,回答正确!!!'
2016年06月09日 03点06分 4
1