>>> import sys
def prime(n):
i=2
isp=True;
while(i<n):
if(n%i==0):
isp=False
break
n/=i
i+=1
if(n==1):
isp=False
return isp
while(True)
x=input("num=")
if x=="exit"
sys.exit()
print(prime(int(x))))
SyntaxError: multiple statements found while compiling a single statement
为什么这个代码总是“语法错误:在编译一个语句中找到多条语句”在Python
3.5.2语法错误:多个语句中找到在编译一个语句