📜  在while循环中运行一次代码python代码示例

📅  最后修改于: 2022-03-11 14:45:37.145000             🧑  作者: Mango

代码示例1
flg = True
while COUNT != 0:
    print("Running!")
    if flg:
        text = process[0] + " process running"
        url = URL + "sendMessage?text={0}&chat_id={1}".format(text, CHAT_ID)
        # send message to groups
        requests.get(url)
        flg = False