我正在使用Python制作一个游戏(仅限文本),但是当人们播放它时会让人感到困惑,因为段落之间没有空格,所以它看起来像这样:
'You step outside and feel the wind on your face.'
'Which direction do you turn?'
Run Code Online (Sandbox Code Playgroud)
但我希望它看起来像这样:
'You step outside and feel the breeze on your face'
'What do you do next'?
Run Code Online (Sandbox Code Playgroud)
这是我的代码:
print 'You step outside and feel the cool breeze on your face.'
what = raw_input ('What do you do next ')
Run Code Online (Sandbox Code Playgroud)
谢谢!
打印换行符.
print("\n")
Run Code Online (Sandbox Code Playgroud)
要么:
print("An angry-looking dwarf throws an axe at you.\nYou die.\n")
Run Code Online (Sandbox Code Playgroud)