IF1.PY 问题

name = "Doug"
if name== 'Doug':
print "hello,D-man!"
print "how are you today"

name = "Doug"
if name== 'Doug':
print "hello,D-man!"
print "how are you today"

哪里错了?????????????

青岩寺
浏览 1321回答 2
2回答

宝矿力

name = "Doug" if name== 'Doug':     print "hello,D-man!"     print "how are you today" name = "Doug" if name== 'Doug':     print "hello,D-man!"     print "how are you today"

ninebean90

>>> name = "Doug">>> if name=='Doug': print "hello,D-man!" print "how are you today"下面是输入print命令后的结果hello,D-man!how are you today不知道这个是不是你想要的结果??
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python