43 lines
1.0 KiB
Python
43 lines
1.0 KiB
Python
|
#!/bin/python3
|
||
|
|
||
|
import random
|
||
|
import time
|
||
|
import os
|
||
|
|
||
|
#r, c = map(int, input("R c: ").split())
|
||
|
|
||
|
arr_size = 100
|
||
|
|
||
|
arr = [i + round(random.random(), 3) for i in range(arr_size, 0, -5)]
|
||
|
|
||
|
#a = [[ round((random.random() - 0.5) * 20, 3) for i in range(ar_size[0]) ] for j in range(ar_size[1])]
|
||
|
|
||
|
#a = [ [ round((random.random() - 0.5) * 20, 3) for i in range(round(ar_size[0] / 2)) ] * 2 for j in range(ar_size[1]) ]
|
||
|
|
||
|
#a[0][4] = 5
|
||
|
#a[0][7] = 5
|
||
|
|
||
|
for i in range(5, -1, -1):
|
||
|
print(f"Starting in {i}...")
|
||
|
time.sleep(1)
|
||
|
|
||
|
'''for i in range(row):
|
||
|
for j in range(4):
|
||
|
os.system(f"xdotool type --delay 2 -- {i}")
|
||
|
os.system("xdotool key Return")'''
|
||
|
|
||
|
map(str, arr)
|
||
|
|
||
|
for i in range(0, 10):
|
||
|
for j in range(5):
|
||
|
os.system(f"xdotool type --delay 2 -- {arr[i]}")
|
||
|
os.system("xdotool key Return")
|
||
|
# print(arr[i], end = " ")
|
||
|
|
||
|
for j in range(5):
|
||
|
os.system(f"xdotool type --delay 2 -- {arr[i+1]}")
|
||
|
os.system("xdotool key Return")
|
||
|
# print(arr[i+1], end = " ")
|
||
|
|
||
|
# print("\n")
|