相关疑难解决方法(0)

在 python 输出中居中多行文本

好吧,这似乎是一个非常基本的问题,但我在任何地方都找不到可行的答案,所以就在这里。

我有一些文字:

text = '''
Come and see the violence inherent in the system. Help! Help! I'm being 
repressed! Listen, strange women lyin' in ponds distributin' swords is no 
basis for a system of government. Supreme executive power derives from a 
mandate from the masses, not from some farcical aquatic ceremony. The Lady 
of the Lake, her arm clad in the purest shimmering samite held aloft 
Excalibur from the bosom of the water, signifying by divine providence that 
I, Arthur, …
Run Code Online (Sandbox Code Playgroud)

python text string-formatting python-3.x output

3
推荐指数
1
解决办法
7343
查看次数

标签 统计

output ×1

python ×1

python-3.x ×1

string-formatting ×1

text ×1