普通文字:
这是代码:
x = 100
divisors = ()
for i in range(1,x):
if x%i == 0:
divisors = divisors + (i)
Run Code Online (Sandbox Code Playgroud)在运行程序时,出现以下错误:
divisors = divisors + (i)
TypeError: can only concatenate tuple (not "int") to tuple
Run Code Online (Sandbox Code Playgroud)