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.
我一直试图弄清楚如何重复一个简单的“打印”,但无济于事。我想知道我应该使用什么命令以及如何使用该命令。我没有任何代码,因为我对它很生气,所以我删除了文件......
假设 Python 2:
repeats = int(raw_input("How many repetitions? ")) for i in range(repeats): print "I will read a Python tutorial!"