Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
编写一个程序,使用步长为 10 的 for 循环,以升序打印出所有以 7 结尾的 2 位数字
我不知道从哪里开始,或者如何做到这一点。请帮忙!
range
range(stop) range(start, stop[, step])
range(stop)
range(start, stop[, step])
>>> for n in range(17, 100, 10): print n 17 27 37 47 57 67 77 87 97