资源简介
Python版的汽车WIN码生成器
汽车行业可能需要
代码片段和文件信息
# -*- coding: utf-8 -*-
from tkinter import *
class Application(frame):
def __init__(self master=None):
frame.__init__(self master)
self.pack()
self.createWidgets()
def createWidgets(self):
self.nameInput1 = Entry(self)
self.nameInput1.pack()
self.nameInput2 = Entry(self)
self.nameInput2.pack()
self.vinText = Entry(self)
self.vinText.pack()
self.quitButton = Button(self text=‘Make‘ command=self.makeVIN)
self.quitButton.pack()
self.quitButton = Button(self text=‘Quit‘ command=self.quit)
self.quitButton.pack()
def makeVIN(self):
l8=str(self.nameInput1.get())
r8=str(self.nameInput2.get())
self.vinText.insert(0GetVin(l8r8))
def GetVINCheck(L8R8):
intWeights=[876543210098765432]
if len(L8)!=8:
return ‘?‘
if len(R8)!=8:
return ‘?‘
vin=L8+‘0‘+R8
vin.upper()
dictReplace={}
dictReplace[‘A‘]=1
dictReplace[‘B‘]=2
dictReplace[‘C‘]=3
dictReplace[‘D‘]=4
dictRepl
相关资源
- 学习python爬虫看一篇就足够了之爬取
- Problem Solving in Data Structures and Algorit
- problem-solving-with-algorithms-and-data-struc
- Problem Solving with Algorithms and DataStruct
- 2018汽车之家汽车品牌车型数据新鲜出
- openVINO 反光背心和安全帽检测safety-
- tensorflow实现简易的汽车检测car-detec
- 爬取汽车之家指定配置信息
- 汽车之家图片爬取
- 海明校验 python源代码 海明码
- Problem Solving with Algorithms and Data Struc
评论
共有 条评论