From 080270b0b9bd9129ef9200d5b640c9fb329c74e7 Mon Sep 17 00:00:00 2001 From: Ruler229 Date: Wed, 21 May 2025 20:35:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20main.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 220aec6..360d535 100644 --- a/main.py +++ b/main.py @@ -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)