为什么这行不通?我一直在搞乱我的 if 语句,它一直给我一个错误并说无效的语法。也许我只是忘记了如何设置操作员。请温柔一点,我刚开始从 Java 切换到 Python。谢谢!
# Create a short program that gets a users age and name
print("Hello there! What is your name?")
myName = raw_input()
print("Okay then %s(myName) how old are you?")
myAge = raw_input()
if myAge < 18
print("Ah, so you're an adult then!")
else if age >= 18
print("So you're a kid, huh?")