上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 什么是 SymPy? SymPy 是一个 Python 库,允许你以符号形式计算数学对象。 要安装 SymPy,请键入: pip install sympy 现在让我们看一下 SymPy 能做的一些令人惊奇的事情! 首先导入 SymPy 提供的所有方法 from sympy import * 基本操 阅读全文
posted @ 2022-06-09 09:27 司砚章 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Python将GIF图片转换成png图片帧 效果图: 转换之后保存到文件夹中: 代码如下:(第三方库pillow,安装方法:在cmd中输入: pip install pillow) from PIL import Image import os gifFileName = 'timg.gif' #使 阅读全文
posted @ 2022-06-09 09:24 司砚章 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 卷积层 注: 阅读全文
posted @ 2022-06-09 09:23 司砚章 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 参考链接 pip install 工具包到指定目录 pip install --target=D:\Python\Lib\site-packages numpy 阅读全文
posted @ 2022-06-09 09:23 司砚章 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 线性层 阅读全文
posted @ 2022-06-06 15:00 司砚章 阅读(24) 评论(0) 推荐(0) 编辑
摘要: cd /d D:\Project_Encyclopedia\img pyuic5 -o ui_FormHello.py FormHello.ui 阅读全文
posted @ 2022-06-06 15:00 司砚章 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 单引号 ' 单引号里面只能包含一个字符,默认是 rune类型(等同于int32),输出的值改会自动改为字符的ASCII值。 双引号 " 双引号里面可以是单个字符也可以是字符串,对应golang中的string类型,实际上是字符数组。可以用索引号访问某字节,也可以用len()函数来获取字符串所占的字节 阅读全文
posted @ 2022-06-06 14:59 司砚章 阅读(219) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2020.cnblogs.com/blog/2140721/202110/2140721-20211007185630100-1689064757.png) 阅读全文
posted @ 2022-06-06 14:59 司砚章 阅读(31) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2020.cnblogs.com/blog/2140721/202109/2140721-20210913200549035-421994360.png) ![image](https://img2020.cnblogs.com/blog/2140721/202109/2140721-20210913200626729-533731918.png) ![im 阅读全文
posted @ 2022-06-06 14:58 司砚章 阅读(70) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2020.cnblogs.com/blog/2140721/202109/2140721-20210915210646431-1996179958.png) 阅读全文
posted @ 2022-06-06 14:58 司砚章 阅读(21) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2020.cnblogs.com/blog/2140721/202109/2140721-20210921101620634-1876177177.png) 阅读全文
posted @ 2022-06-06 14:58 司砚章 阅读(193) 评论(0) 推荐(0) 编辑
摘要: go build 和go run两种执行流程的方式区别 阅读全文
posted @ 2022-06-06 14:57 司砚章 阅读(41) 评论(0) 推荐(0) 编辑
摘要: go.mod file not found in current directory or any parent directory; see 'go help modules' go env -w GO111MODULE=auto 阅读全文
posted @ 2022-06-06 14:57 司砚章 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #查看字符编码(UTF-8) 查看字符编码(UTF-8) 阅读全文
posted @ 2022-06-06 14:57 司砚章 阅读(18) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "net/http" ) //创建处理器函数 func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Hello world!", r.URL.Path) 阅读全文
posted @ 2022-06-05 17:32 司砚章 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 在使用pycharm时,经常会需要多行代码同时缩进、左移,pycharm提供了快捷方式 1、pycharm使多行代码同时缩进 鼠标选中多行代码后,按下Tab键,一次缩进四个字符 2、pycharm使多行代码同时左移 鼠标选中多行代码后,同时按住shift+Tab键,一次左移四个字符 阅读全文
posted @ 2022-06-05 17:32 司砚章 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 错误类型: ValueError: dictionary file dict.txt must be utf-8 解决方案:txt文件“另存为”设置编码格式为“utf-8” 阅读全文
posted @ 2022-06-05 17:31 司砚章 阅读(98) 评论(0) 推荐(0) 编辑
摘要: go 运行错误expected 'package', found 'EOF'解决 只要将文件保存一下,再运行就ok了 阅读全文
posted @ 2022-06-05 17:30 司砚章 阅读(814) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2020.cnblogs.com/blog/2140721/202110/2140721-20211027232033842-1417225898.png) 阅读全文
posted @ 2022-06-05 17:30 司砚章 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 信号与槽的使用 信号与槽(Signals/Slots)是Qt编程的基础,也是Qt的一大特色。因为有了信号与槽的编程机制,在Qt中处理界面组件的交互操作时变得比较直观和简单。 信号(Signal)就是在特定情况下被发射(emit)的一种通告,例如一个PushButton按钮最常见的信号就是鼠标单击时发 阅读全文
posted @ 2022-06-05 17:30 司砚章 阅读(757) 评论(0) 推荐(0) 编辑
摘要: #Go学习方向 #Golang的产生原因 #Golang语言的特点 #VScode的安装和使用 #Windows下搭建Go开发环境-安装和配置SDk SDK的下载地址:https://golang.google.cn/dl/ 阅读全文
posted @ 2022-06-05 17:29 司砚章 阅读(62) 评论(0) 推荐(0) 编辑
摘要: ![image](https://img2020.cnblogs.com/blog/2140721/202106/2140721-20210623234807073-648151412.png) 阅读全文
posted @ 2022-05-28 10:13 司砚章 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 山区和地形图中海拔高的区域划出的线称为地形轮廓,它们提供了地形的高程图。这些线条可以手动绘制,也可以由计算机生成。在本文中,我们将看到如何使用OpenCV在简单图像上绘制轮廓线。 findContours函数: OpenCV为我们提供了“ findContours”功能,该功能可在二进制图像中查找轮 阅读全文
posted @ 2022-05-28 10:11 司砚章 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 1.设计的GUI界面为: dockWidget和treeWidget采用栅格布局 2.对象查看器 3.动作编辑器 4.myWidget.py文件 import sys from PyQt5.QtWidgets import (QMainWindow,QApplication,QTreeWidgetI 阅读全文
posted @ 2022-05-28 10:11 司砚章 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 下面是我设计的: 1.界面 2.对象查看器 3.信号槽 4.动作编辑器 5.myWidget.py文件 import sys from PyQt5.QtWidgets import (QMainWindow,QApplication,QListWidgetItem, QMenu,QToolButto 阅读全文
posted @ 2022-05-28 10:10 司砚章 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 先安装jieba库 地址如下: 安装jieba库 jieba的分词模式 可以将结果十分精准分开,不存在多余的词 常用函数:lcut(str)、cut(str) import jieba aa=jieba.cut('任性的90后boy') for i in aa: print(i) 如果不想让它换行显 阅读全文
posted @ 2022-05-28 10:09 司砚章 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 下面是我设计的: 1.界面 2.对象查看器 3.信号槽 4.动作编辑器 5.myWidget.py文件 import sys from PyQt5.QtWidgets import (QMainWindow,QApplication,QActionGroup, QLabel,QProgressBar 阅读全文
posted @ 2022-05-28 10:09 司砚章 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Qt添加菜单栏和工具栏 一般常规的PC软件都会有主窗口,主窗口中都会有菜单栏和工具栏,例如我们正在使用的Qt creator: 首先需要先创建mainWindow设计师类,基类直接选择默认的MainWindow即可,然后就可以进行设计了,这里选择直接设计ui文件,下拉菜单无法直接输入中文,需要在其它 阅读全文
posted @ 2022-05-28 10:09 司砚章 阅读(827) 评论(0) 推荐(0) 编辑
摘要: 在UI Designer的组件面板里还有几个常见的用于输入和输出的组件。在Input Widgets分组里有QSlider和QScrollBar两个滑动型输入组件,在Display Widgets分组里的QProgressBar是进度条显示组件。这三个组件都有orientation属性,可以设置为水 阅读全文
posted @ 2022-05-28 10:08 司砚章 阅读(255) 评论(0) 推荐(0) 编辑
摘要: QLineEdit是常用的输入输出字符串的组件,也可以用于输入输出数值数据,只需进行字符串与数字之间的转换。 QSpinBox是专门用于输入输出整数的组件,还可以使用二进制、十六进制显示; QDoubleSpinBox是专门用于输入输出浮点数的组件。 Demo3_1是采用单窗体应用程序模板widge 阅读全文
posted @ 2022-05-28 10:07 司砚章 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: 设定字体位置,可以直接在ui界面设定 在ui界面,右键点击改变样式表 填入: QLineEdit{qproperty-alignment:AlignRight;} 我这里的是靠右 靠左:AlignLeft 居中:AlignCenter 这样的话不需要在代码中设置。 没有设定时候的效果: 设定后: 阅读全文
posted @ 2022-05-28 10:07 司砚章 阅读(633) 评论(0) 推荐(0) 编辑
摘要: QPushButton QPushButton是常用的按钮组件,前面的一些示例中都是将其当作一个普通按钮使用的,为其clicked()信号编写槽函数进行响应。 QPushButton有一个checkable属性,如果设置为True,QPushButton按钮可以当作CheckBox或RadioBut 阅读全文
posted @ 2022-05-28 10:07 司砚章 阅读(654) 评论(0) 推荐(0) 编辑
摘要: 在cmd命令行中直接输入 pip install jieba -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 阅读全文
posted @ 2022-05-28 10:02 司砚章 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 案例展示 #1.无参有返回 ##返回公司的员工个数 CREATE FUNCTION myf1() RETURNS INT BEGIN DECLARE c INT DEFAULT 0;#定义变量 SELECT COUNT(*) INTO c #赋值 FROM `employees`; RETURN c 阅读全文
posted @ 2022-05-26 09:14 司砚章 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 视图 视图的语法 案例1.查询姓名中包含a字符的员工名、部门名和工种信息 #1.查询姓名中包含a字符的员工名、部门名和工种信息 # 创建 create view myv1 as select `last_name`,`department_name`,`job_title` from `employ 阅读全文
posted @ 2022-05-26 09:13 司砚章 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 使用的语法 1.查看所有的系统变量 SHOW GLOBAL VARIABLES; 2.查看所有的会话变量 SHOW SESSION VARIABLES; 3.查看满足条件的部分系统变量 比如查看字符集 SHOW GLOBAL VARIABLES LIKE '%char%'; 注意: 4. 查看指定的 阅读全文
posted @ 2022-05-26 09:13 司砚章 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 一、创建语法 二、调用语法 案例 需要在命令行中运行!!!!!!!!! 然后把刚刚写的SQL语句直接粘贴过来 这样就创建成功啦 创建带in模式参数的存储过程 然后在命令行里面输入 然后进入调用 传入参数 就可以得出查询结果 案例 带out模式的存储过程 案例1 然后粘贴到命令行里面,就能显示结果啦 阅读全文
posted @ 2022-05-26 09:13 司砚章 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 1.整形 1.如何设置无符号和有符号 #1.如何设置无符号和有符号 drop table if exists tab_int; create table tab_int( t1 int, t2 int unsigned ); desc tab_int insert into tab_int valu 阅读全文
posted @ 2022-05-26 09:12 司砚章 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 常见约束 列级约束 USE books CREATE TABLE major( id INT PRIMARY KEY, #主键 majorName VARCHAR(20) ); CREATE TABLE stuinfo( id INT PRIMARY KEY,#主键 stuName VARCHAR( 阅读全文
posted @ 2022-05-26 09:12 司砚章 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 标识列 阅读全文
posted @ 2022-05-26 09:12 司砚章 阅读(19) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页