# -*- coding: utf-8 -*- import json import threading import time import requests from openpyxl import load_workbook file ="data_xiancheng.xlsx" #要执行的文 ...
分类:
编程语言 时间:
2020-05-14 10:38:02
阅读次数:
68
private void OnTimerCallback(Object obj) { po_SvrTime = po_SvrTime.AddSeconds(1); this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPrior ...
分类:
其他好文 时间:
2020-05-11 18:56:02
阅读次数:
62
讲两个知识点。一个是关于上拉和下拉,另一个是关于threading函数。 1.上拉电阻和下拉电阻 上拉就是把一个不确定的信号通过一个电阻连接到高电位,这样在开关断开是信号为高电位,开关合上时信号为低电位。 同理,下拉就是把一个不确定的信号通过一个电阻连接到高电位。 "具体可以参考这篇博客" 2.th ...
分类:
其他好文 时间:
2020-05-10 01:22:12
阅读次数:
107
1、采用TCP自定义协议通讯,协议由02(byte) + json字符串(byte[]) +03(byte)组成。 Socket_Client.cs 服务端using System;using System.Collections.Generic;using System.Net;using Sys ...
from threading import Thread g_num = 0 def test1(): global g_num for i in range(1000000): g_num += 1 print(" test1 g_num=%d"%g_num) def test2(): globa ...
分类:
编程语言 时间:
2020-05-07 21:24:41
阅读次数:
75
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using FineUICore; using Microsoft.AspNetCore.Authoriz ...
分类:
其他好文 时间:
2020-05-06 21:34:28
阅读次数:
86
原文:WPF 加减乘除计算器 小玩意,毫无任何难度。 cs: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; usi... ...
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace FactoryMod ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactoryMode { public abs ...
注意:之前用过openpyxl库保存数据到Excel文件写入不了,换用xlsxwriter 1 import os 2 import requests 3 import re 4 from openpyxl import load_workbook 5 import xlsxwriter 6 fro ...
分类:
编程语言 时间:
2020-05-05 10:56:46
阅读次数:
167