![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
叙利亚打工人
这个作者很懒,什么都没留下…
展开
-
python UI基础界面
import sys from PyQt5.QtWidgets import QApplication, QMainWindow, QAction, QLabel, QLineEdit, QPushButton from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QTextEdit, QTextBrowser, QHBoxLayout, QVBoxLayout import time class GUI(QMainWindow): def i原创 2021-04-06 18:39:17 · 252 阅读 · 0 评论 -
python 使用TK写下拉菜单并和函数建立绑定关系
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原创 2021-03-22 09:40:19 · 1358 阅读 · 0 评论 -
Python多态
#多态必须满足两点: # 1.继承 # 2.重写 class Animal: def say_who(self): print('我是一个动物') pass pass class Duck(Animal): def say_who(self): print('我是一只鸭子') pass pass class Dog(Animal): def say_who(self): print(原创 2021-02-24 14:02:41 · 96 阅读 · 1 评论 -
Python 多继承
Python 多继承. 子类最终继承的同名方法为 一级一级的查找,最先查找哪个,就继承哪个 ```class D: def eat(self): print('D.eat') pass pass class C(D): def eat(self): print('C.eat') pass pass class B(D): def eat(self): print('B.eat')原创 2021-02-24 13:53:52 · 54 阅读 · 0 评论 -
python 数据类型以及对应的重要用法
python 的数据类型 字符串---------学好切片 数字-------用好c的数字 元组------ 字典 列表原创 2021-01-22 09:47:48 · 60 阅读 · 0 评论