def的问题
本帖最后由 xy1770 于 2020-7-5 13:31 编辑def samurai(input_string):
if (input_string == "samurai"):
print("samurai")
elif(input_string == "engineer"):
print("engineer")
else:
print("それ以外")
samurai("engineer")
为啥是engineer ???这多明显啊
elif(input_string == "engineer"):
print("engineer")
页:
[1]