摘要: 底账库 存放公司所有发票数据的数据库数据表,可以是多个表 红冲 发票冲红是针对原开的发票有误或者因为其他原因需更正,需要重新开具的发票调整账目 原始发票称蓝票,冲红是相对原票来的 红冲就是红字冲账法。就是当你的会计账簿登记错误时不能直接将错误账页销毁,一定要用规定的会计方法冲销错误的会计账簿,然后用 阅读全文
posted @ 2021-06-18 18:01 我是一言 阅读(3694) 评论(0) 推荐(0) 编辑
摘要: Event-信号传递 threading.Event源码的解释是这样的, class Event: """Class implementing event objects. Events manage a flag that can be set to true with the set() met 阅读全文
posted @ 2021-06-18 16:21 我是一言 阅读(83) 评论(0) 推荐(0) 编辑
摘要: Semaphore-加锁 from threading import Thread, Semaphore import threading import time def worker(s,i): s.acquire() print(threading.current_thread().name + 阅读全文
posted @ 2021-06-18 11:16 我是一言 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 线程同步 控制线程执行顺序 生产者与消费者 可以看下打印,是相对有序的 from queue import Queue # 队列类 import random import threading import time # 生产者线程 class Producer(threading.Thread): 阅读全文
posted @ 2021-06-18 11:14 我是一言 阅读(51) 评论(0) 推荐(0) 编辑