This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psutil | |
import math | |
import time | |
from apscheduler.schedulers.background import BackgroundScheduler | |
import winsound | |
#import sys | |
import numpy as np | |
import copy | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import List | |
import psutil | |
import math | |
import time | |
def occ_rate() ->float: | |
memory = psutil.virtual_memory() | |
occ_rate = float(memory.used) / float(memory.total) * 100 | |
return float(occ_rate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def checkio(words: str) -> bool: | |
split_words = words.split() | |
count = 0 | |
for w in split_words: | |
if w.isalpha(): | |
count += 1 | |
while count == 3: | |
return True | |
break | |
elif w.isdigit(): |