私はRPGゲームに取り組んできました。私はsys.stdout.write()と.flush()がどのようにタイピングアウト手紙しかし、私が入力したい文に変数を入れると、それは文の一部を入力するのではなく、引用符で囲まれた部分(非変数)でさえも入力しません。私は変数のために別々のコードブロックを書くことと引用符で囲まれたものを私に含めない方法があるかどうか疑問に思っていました。変数とのsys.stdout.write()と.flush()
if girl1 == True:
t="You and",girl1realname,"have found a sandy beach while looking for a
place of shelter. \nWhether you look left or right, the beach ranges for
miles.\n"
y=girl1realname+": 'Hey, I guess I always wanted a house on the beach...I
think. I can't really remember.'\n"
for char in (t):
time.sleep(0.05)
sys.stdout.write(char)
sys.stdout.flush()
time.sleep(1)
for char in (y):
time.sleep(0.05)
sys.stdout.write(char)
sys.stdout.flush()
あなたはまだRen'Pyの間で実行しましたか? –
@ IgnacioVazquez-Abrams申し訳ありませんが、それが何であるか分かりません –
@ IgnacioVazquez-Abrams IDEを介して純粋に実行されるビジュアルゲームではありません –