Bea*_*eau -1 python formatting
我如何才能在以下打印语句的后半部分开头有 10 个空格?
print("I need ten spaces", "This sentence should have ten spaces in between this and the first statement")
Run Code Online (Sandbox Code Playgroud)
我想输出...
I need ten spaces This sentence should have ten spaces in between this and the first statement
Run Code Online (Sandbox Code Playgroud)
使用中的sep参数print:
print("I need ten spaces",
"This sentence should have ten spaces in between this and the first statement",
sep=' '*10)
# I need ten spaces This sentence should have ten spaces in between this and the first statement
Run Code Online (Sandbox Code Playgroud)