I am trying to make a textual game in python. All goes well however, I would like to make a function that will allow me to print something to the terminal, but in a fashion hat looks like typing.
Currently I have:
def print_slow(str):
for letter in str:
print letter,
time.sleep(.1)
print_slow("junk")
The output is:
j u n k
Is there a way to get rid of the spaces between the letters?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…