我对此并不陌生,并尝试将此函数的输出作为字符串传递给tweepy更新方法(以雕像形式发布)
def hello():
name = str(input("Enter your name: "))
if name:
print ("Hello " + str(name))
else:
print("Hello World")
return
hello()
这里的问题是Tweepy的“ api.update_status(status)”仅接受字符串或包含字符串的变量。使用函数调用可打印出错误。
如何进行这个简单的过程?
我试图将函数输出作为变量传递
test = hello()
但是将错误输出到Twitter。
...
api.update_status (test)