我正在尝试创建一个程序来查找字符串中的字符索引(除了range、if语句、while循环或for循环之外,不使用任何函数),但我想不出怎么做。我们将非常感谢您的帮助。 while char!=testList: if i!=char: if char==test:
print findIndex("e", "alphabet"
我需要的数字下降到1-6之间,当用户按下按钮。我看过其他例子,但其中一个似乎对我有帮助。使用线性先天生成器似乎有点杀伤力。roll1
beq roll2
beq roll3
beq roll4
beq roll5
// this is to tell the singal to go out
mov r0, #0 /