将ascii文本字符串解析为单独的变量

2024-05-15 18:05:53 发布

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

我有一段文字交给我,就像:

here is line one\n\nhere is line two\n\nhere is line three

我想把这个字符串分成三个独立的变量。 我不太确定如何用python实现这一点。在

谢谢你的帮助, 吉咪


Tags: 字符串hereislineonethree文字two