import random

import itchat


def randomRed():
    red = []
    while len(red)!=6:
        redtemp = random.randint(1,33)
        if redtemp not in red:
            red.append(redtemp)
        else:
            continue
    return red
def randomBlue():
    return random.randint(1,12)

def get500Wkey():
    red = randomRed()
    blue = randomBlue()
    print("red: %d %d %d %d %d %d"%(red[0],red[1],red[2],red[3],red[4],red[5]))
    print("blue: %d"%(blue))
    result = "红球: %d %d %d %d %d %d"%(red[0],red[1],red[2],red[3],red[4],red[5])+"\n"+"篮球: %d"%(blue)
    return result
def send_wechat():
    itchat.login()
    res = itchat.send("随机一注:\n"+get500Wkey(),"@@001b263f5f2db50fa71f502f2954da6")
    print(res)
    friends = itchat.get_chatrooms()
    # friends = itchat.get_friends()
    print(friends)
    # itchat.logout()
if __name__ == '__main__':
    send_wechat()

 

相关文章:

  • 2021-06-18
  • 2021-09-21
  • 2022-01-11
  • 2021-04-03
  • 2022-12-23
  • 2022-02-06
  • 2021-09-04
  • 2022-12-23
猜你喜欢
  • 2021-08-19
  • 2021-08-15
  • 2021-09-02
  • 2022-01-04
  • 2022-12-23
  • 2021-05-26
  • 2021-12-17
相关资源
相似解决方案