Python输出在Sublime和PyCharm中不同

2024-05-14 13:46:58 发布

您现在位置:Python中文网/ 问答频道 /正文

在Sublime Text 3和PyCharm中运行以下代码时,我得到了不同的结果:

message = input('type a message: ')
words = message.split(' ')
print(words)

它们都会提示我键入消息,但Sublime text不会打印包含消息内容的列表,而PyCharm会打印。(我正在运行Python 3.7.4)

有人知道为什么吗

谢谢大家!


Tags: 代码text消息内容message列表input键入

热门问题