推特机器人 huancun 2023-06-18 技术 python 12345678import tweepyclient = tweepy.Client( consumer_key="填你的consumer_key", consumer_secret="填你的consumer_secret", access_token="填你的token", access_token_secret="填你的token_secret")client.create_tweet(text=str('py测试'), user_auth=True) 引用:tweepy中文文档https://www.tweepy.cn/client.html#tweepy.Client