output=
Sign in to Twitter
Visit someone's profile
Saved search
Promote this Tweet
Block
Tweet with location
Spread the Location
Your list
Create a new list
Copy Tweet link
Embed this Tweet
我希望make到一个变量=“登录Twitter,访问某人的个人资料,保存搜索,推广此推文,阻止,推文查找位置,传播位置,列表,创建新列表,复制推文链接,嵌入此推文“
答案 0 :(得分:0)
你想要吗?
# -*- coding: UTF-8 -*-
import os
import sys
if __name__ == '__main__':
var = '''
Sign in to Twitter
Visit someone's profile
Saved search
Promote this Tweet
Block
Tweet with location
Spread the Location
Your list
Create a new list
Copy Tweet link
Embed this Tweet
'''
output = var.split('\n')
print (var)
print(output)
输出打印:
['','登录Twitter',“访问某人的个人资料”,“保存的搜索”,“推广此推文”,“阻止”,“推送位置”,“传播位置”,“您的列表','创建新列表','','复制推文链接','嵌入此推文','']