def daenerys():
Name = raw_input("Who goes there?")
if ("Daenerys of the House Targaryen, the First of Her Name, The Unburnt, Queen of the Andals, the Rhoynar and the First Men, Queen of Meereen, Khaleesi of the Great Grass Sea, Protector of the Realm, Lady Regnant of the Seven Kingdoms, Breaker of Chains and Mother of Dragons"):
print("Welcome, Daenerys.")
elif ("DHTFHNUQARFMQMKGSPRLRSKBCMD"):
print("Welcome, Daenerys.")
elif ("Dany"):
print("Dany who?")
else:
print("Move along, now")
daenerys()
Tags:
你甚至没有检查Name变量。你应该这样做
这实际上会检查变量
Name
是否等于字符串。你知道吗相关问题 更多 >
编程相关推荐