Compare commits

...

2 Commits

Author SHA1 Message Date
f43310dd4a Merge pull request '更新 main.py' (#10) from ruler229-patch-4 into master
Reviewed-on: #10
2025-05-21 20:35:06 +08:00
080270b0b9 更新 main.py 2025-05-21 20:35:00 +08:00

11
main.py
View File

@ -50,12 +50,15 @@ class MyPlugin(Star):
,charset='utf8' # 字符编码
)
#cur = conn.cursor()
time=[];V=[];a=[];b=[]
time = []
V = [1]
a = [1]
b = [1]
for i in range(0,10):
time.append(round(random.uniform(1, 600), 2))
V.append(round(random.uniform(0.01,100), 2))
a.append(time_long(time))
b.append(volume(V))
#V.append(round(random.uniform(0.01,100), 2))
#a.append(time_long(time))
#b.append(volume(V))
#sql = "INSERT INTO dajiao (openid, timelong, volume) VALUES (%s, %s, %s)"
#values = (user_name,time[i],V[i])
#cur.execute(sql,values)