-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstl.py
More file actions
46 lines (31 loc) · 641 Bytes
/
stl.py
File metadata and controls
46 lines (31 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import random
import os
import shutil
import json
import csv
from datetime import datetime,timedelta
import time
import re
x = random.randint(1,10)
print(x)
print(random.choice(["hj",1,"hft",True]))
print(os.getcwd())
os.mkdir('foldr')
shutil.copyfile('source.txt','destination.txt')
dic = {"hello":1,"ogg":2}
print(dic)
string = json.dumps(dic)
print(string)
d = json.loads(string)
print(d)
now = datetime.now()
print(now)
yesterday = now - timedelta(days=1)
print(yesterday)
print(time.time())
#time.sleep(2)
print(time.time())
pattern = r'\d+'
text= "hello 1234 is 456"
match = re.search(pattern,text)
print(match.group())