我有以下列表:
["Jargon", "Hello", "This", "Is", "Great"]
Run Code Online (Sandbox Code Playgroud)
我想填充一个字符串:
"""
{}
""".format(list-elements-besides-the-first)
Run Code Online (Sandbox Code Playgroud)
是否有一个简单的衬垫,我可以使用它,使我能够:
yourList = ["Jargon", "Hello", "This", "Is", "Great"]
butFirst = yourList[1:]
eachInASeparateLine = "\n".join(butFirst)
print eachInASeparateLine
Run Code Online (Sandbox Code Playgroud)