阅读背景:

如何在不使用“索引”功能的情况下在列表中找到项目的位置?

来源:互联网 

I'm a beginner at programming, and I'm trying to create a program that finds the largest number in a list of 1000 random numbers without using the "max" function, and then find the largest numbers position in the list, without using the "index" function (I set the numbers from 0-10 so that I can make sure that the program is working properly). My program so far works, kind of. Sometimes, it will display the location,and when it does, it will display the wrong location, and other times, it will display an error that says that the index is out of range. Could someone please help?I'm a beginner at programming, and I'm trying t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: