Skip to content

Commit 10f7ce6

Browse files
committed
قابلیت های چون تعداد خروجی ها و همچنین تنظیم زمان بندی استفاده کنید.
1 parent e8d16fe commit 10f7ce6

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

colorRandom/Funck.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
12
import random
2-
import sys
3-
from os import system
3+
from time import sleep
44

5-
class color :
6-
def __init__(self) -> None:pass
5+
class color:
6+
def __init__(self):
7+
...
78
def Color(text:str):
89
# list color in pyhton !
910
ResetAll = "\033[0m";Bold = "\033[1m";Dim = "\033[2m"
@@ -156,3 +157,11 @@ def Color(text:str):
156157
elif random_ == 79:print(f"{CBOLD}{text}")
157158

158159
else:raise ValueError(f'\033[1mError value in text')
160+
161+
162+
def xcolor(text:str,total:int,sleeping:float):
163+
for numbering in range(0,total):
164+
color.Color(text)
165+
sleep(sleeping)
166+
167+
color.xcolor('xoxoxo',5,2.5)

0 commit comments

Comments
 (0)