import tkinter
import _thread
import time
from tkinter import ttk
import sys
import os
import re
import serial
w = 10
com_name=[]
# def print_time(thread_name,delay):
# count = 0
# while count < 5:
# time.sleep(delay)
# count +=1
# print("%s: %s"%(thread_name,time.ctime(time.time())))
#
# try:
# _thread.start_new_thread(print_time,("Thread-1",2,))
# _thread.start_new_thread(print_time,("Thread-2",4,))
# except:
# print('Error:无法启动线程')
#
# while 1:
# pass
def com():
ser=serial.Serial() #创建设备符号
print
python 使用TK写下拉菜单并和函数建立绑定关系
最新推荐文章于 2023-11-09 18:14:15 发布