我只做了一个因数查询器(1~100),可出现了语法错误,不知道怎么回事,麻烦看一下吧
checknunber=input(print('您想查哪个数字')) #查询的数字输入
print('查询中') #为了美观
contnunber==100 #因数个数提供给后面吧不是引述的部分剪掉
for contnunber range(1,100):
if contnunber%7==0: #如果contnunber变量和7
continue
else #如果余数不是0,将这个数从contnunber变量中删除
contnunber-=1
print("有"+contnunber) #输出
我给你一个世界上所有因数的查询器就行了,别费劲了
def factor(x):
x = int(input("输入数字:"))
factor(x)
choice=input('\n继续输入1,推出输入其他')
while choice=='1':