zoukankan      html  css  js  c++  java
  • 500万的大项目

    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])+"
    "+"篮球: %d"%(blue)
        return result
    def send_wechat():
        itchat.login()
        res = itchat.send("随机一注:
    "+get500Wkey(),"@@001b263f5f2db50fa71f502f2954da6")
        print(res)
        friends = itchat.get_chatrooms()
        # friends = itchat.get_friends()
        print(friends)
        # itchat.logout()
    if __name__ == '__main__':
        send_wechat()
  • 相关阅读:
    MYSQL注入天书之HTTP头部介绍
    Sqli-labs less 18
    Sqli-labs less 19
    Sqli-labs less 20
    Sqli-labs less 21
    Sqli-labs less 22
    Python3之PrettyTable模块
    python设计模式
    python3反射解析
    Python3异常处理
  • 原文地址:https://www.cnblogs.com/zipon/p/9146907.html
Copyright © 2011-2022 走看看