自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 thinkcad弯曲传感器使用

arduino弯曲传感器使用方法

2022-08-29 18:58:25 1129

原创 Python连接巴法云

巴法云连接:完成第一个例子:import socketimport threadingimport timedef connTCP():global tcp_client_socket# 创建sockettcp_client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)# IP 和端口server_ip = 'bemfa.com'server_port = 8...

2022-02-22 21:14:16 1457

原创 QT第四次

SQLite:打开SQLite新建数据库定义一个表分别定义类型和属性之后再python中可以直接使用:import sqlite3cur = sqlite3.connect('stu.db').cursor()sql = '... ...'query=cur.execte(sql)#和MYSQL原因...

2022-01-29 19:14:31 1838

原创 鸿蒙OS第四次作业

数据获取:config.json中:"module": {"reqPermissions": [{"name": "ohos.permission.GET_NETWORK_INFO"},{"name": "ohos.permission.SET_NETWORK_INFO"},{"name": "ohos.permission.INTERNET"...

2022-01-20 17:09:39 525

原创 鸿蒙OS第三次任务

搜索:<search hint="请输入搜索内容" searchbutton="搜索" @search="search"></search>tab-bar<tabs class = "tabs" index="0" vertical="false" onchange="change"><tab-bar class="tab-bar" mode="fixed"><text class="tab-text"&...

2022-01-18 19:57:52 396

原创 鸿蒙OS第二次任务

常用组建:组建:input:输入框button:按钮text:文本属性flex-direction: column;设置居中width: 100%;设置宽height: 20%;设置高font-size: 30px;设置字体大小text-align: left;设置文本位置left: 10%;与左边距离right:10%;与右边距离top: 10px;与上面距离font-

2022-01-16 10:45:05 342

原创 HarmonyOSd第一次任务

JS FA 应用的 JS 模块 (entry/src/main/js/module) 的典型开发目录结构如下:目录结构中文件分类如下:.hml 结尾的 HML 模板文件,这个文件用来描述当前页面的文件布局结构。 .css 结尾的 CSS 样式文件,这个文件用于描述页面样式。 .js 结尾的 JS 文件,这个文件用于处理页面和用户的交互。各个文件夹的作用:app.js 文件用于全局 JavaScript 逻辑和应用生命周期管理。 pages 目录用于存放所有组件页面。 c...

2022-01-14 10:50:01 381

原创 python高级培训第六次任务

import pymysql# 打开数据库连接db = pymysql.connect(host='localhost', user='root', password='wuhu', database='pymysqll')# 使用cursor()方法获取操作游标cursor = db.cursor()# 创建表-------------------------...

2022-01-13 14:21:02 1159

原创 python高级培训第五次任务

'''使用定时器实现当前时间每秒循环输出一次'''import threadingimport timedef run(): print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))) t = threading.Timer(1, function=run) t.start()run()计时器:threading.Timer(second,function=)...

2022-01-11 12:20:42 204

原创 Python高级培训第四次作业

'''使用类继承的方式,实现信号量、事件功能操作。具体案例:第一个线程中获取当前时间,判断当前时间3秒之后,触发“事件”对象。在另一个线程中,作为数学考试结束的判断变量,否则一直处于考试中,并打印。'''import threading#导入库threading,timeimport timeevent = threading.Event()#先创建一个event 方便下面使用event.set()#设置event默认为Trueclass Get_time(object): #创建类Get_.

2022-01-10 11:43:37 162

原创 Python高级培训第三次作业

任务:作业:import threading#导入threading库import time#导入time库class Get_time(object):#创建类Get_time 用于获取当前时间 def __init__(self,each_time_time):#设置__init__ 要一个变量each_time_time来获取每次打印的间隔 self.each_time_time=each_time_time def print_time(self):#设

2022-01-06 22:29:16 587

原创 Python高级培训第二次作业

import operatorclass Cat(object):#创建类cat 继承与object def __init__(self,leg):#设置__init__就上一个参数leg self.leg = leg#设置leg的值为leg def run(self):#设置方法 获得奔跑方法 print("cat have no way to run")#打印cat have no way to runclass Tiger(Cat):#创建.

2022-01-05 23:21:02 3523

原创 Python高级培训第一次作业

class car(object): def __init__(self,b_or_s,weight): self.type=b_or_s self.weight=weight def get_weight(self): print(self.weight) def drive(self): if self.type=="big": print("Drive the cart carefully.

2022-01-03 17:10:21 499

原创 孢子气囊 tkinter控制台

模块:tkintertimerandonserial(可以用串口连接)#import serialimport tkinterimport tkinter.ttkimport timeimport random#ser=serial.Serial('COM6',9600,timeout=1)'''while True: val=ser.readline().decode('utf-8') print(val) '''#可改变量:.FPS=

2021-11-07 19:40:55 425

原创 python测量线长

模块:matplotlibPILtimemathwin32conthreading代码:mian.py:from PIL import Imageimport matplotlib.pyplot as pltfrom image_show import show_your_imagefrom image_show import get_pixelfrom image_show import get_line_long#show_your_imag

2021-11-07 19:37:12 1114

原创 pycharm问题求解

为什么我的pycharm下面会弹出在'__init__'中找不到某个函数我不知道在哪里设置了这个就都成这个样子了重新安装一个模组可以暂时解决这个问题,但是切个屏就又变成这样了正常的好像是这样的求解!!!!!!!!!!!!!!!!...

2021-07-19 16:32:50 156

原创 Python学习

Python学习:1.部分初级函数1.1打印函数:print(变量)print("任意话")打印后不换行:print(变量,end='')打印出变量后加的东西在''中间例如空格:print(i,end=' ')1.2输入函数:input()input('')'里面可以加上想说的话'例输入一个数赋值到i上:i=input()i=input('给我一个数')i=str(input(''给个数吧爸爸))...

2021-05-17 20:24:34 376

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除