• Python多线程编程,线程锁

    多线程 threading 模块创建线程 创建自己的线程类 线程通信 线程同步互斥方法 线程锁 @需要了解!!! 多线程 什么是线程? 线程也是一种多任务的编程方法,可以利用计算机多核资源完成程序的并发运行。 线程又被称为 轻量级进程 线程的特征 线程是计算机多核分配的 最...

    2018-09-18 06:43:45

  • PyQt5--Position

    1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QLabel 9 10 class New_test(QWidget): 11 def __init__ (self): 12 super(). __init__ () 13 self.i...

    2018-09-18 06:43:44

  • 基本的数据类型(数字、字符串、列表、字典)

    一、数字NUMBER int 整形 float 浮点型 a = 12 b = 3.1 print (type(a),type(b)) # 结果 class 'int' class 'float' 二、字符串 Str Python使用单引号’或双引号”括起来的内容,就是字符串类型。三引号引起内容也是字符串,可以多行输入。 a = ' fun ' b = " good " c...

    2018-09-18 06:43:43

  • PyQt5--ShowWindowCenter

    1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QDesktopWidget 9 10 class New_test(QWidget): 11 def __init__ (self): 12 super(). __init__ () 1...

    2018-09-18 06:43:41

  • Python多进程,同步互斥,信号量,锁补充上一篇文章

    进程补充 进程间的信号 信号量(信号灯) 进程的同步互斥 Event事件 Lock 锁 进程补充 进程间的信号 信号是唯一的异步通信方法 一个进程向另一个进程发送一个信号来传递某种信息,接受者根据传递的信息来做相应的事 $ kill -l 查看系统信号说明 $ kill -9 pid号 对进程...

    2018-09-18 06:43:40

  • PyQt5--MessageBox

    1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QMessageBox,QPushButton 9 from PyQt5.QtCore import QCoreApplication 10 11 class New_test(QWidg...

    2018-09-18 06:43:40

  • PyQt5--MenuBar

    1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QMainWindow,QAction,qApp 9 from PyQt5.Qt import QIcon 10 11 class New_test(QMainWindow): 12 def __init...

    2018-09-18 06:43:39

  • python中的运算符

    运算符的有哪些?算数运算、比较运算、逻辑运算、赋值运算、成员运算、身份运算、位运算。 一、算数运算 1、+、-、*、/(加、减、乘、除) 2、%(取模,就是取余数) 3、**(取幂,如2**3表示计算2的3次方) 4、//(取整除) 请看代码: 二、比较运算 1、== (等于,=...

    2018-09-18 06:43:38

  • Python_模块介绍

    模块:一组或者一个.py文件实现了某个功能的代码集合 模块分为三种: 自定义模块 内置标准模块(又称标准库):Python自带的模块 开源模块:自己写的模块,有可以供人使用的功能 开源模块的集散地:Python官网:pypi.python.org 上传模块:1,生成login账号 2,按照上...

    2018-09-18 06:43:37

  • PyQt5--CloseWindow

    1 # -*- coding:utf-8 -*- 2 ''' 3 Created on Sep 13, 2018 4 5 @author: SaShuangYiBing 6 ''' 7 import sys 8 from PyQt5.QtWidgets import QApplication,QWidget,QPushButton 9 from PyQt5.QtCore import QCoreApplication 10 11 class New_test(QWidget): 12 def...

    2018-09-18 06:43:36

2