这里是我要显示输出的图像,完全是这样的。
如果你不能使用嵌套循环,那么你可以使用单循环。
这是伪代码,不是python。
repeat 20 times
pick a random number in [1, 100]
find the factors of the number you just picked
print or store the number and its factors
end repeat
你要尽力去编写这些代码 如果你有问题,那么给我们看你的代码,我们会帮助你。