- 博客(10)
- 收藏
- 关注
原创 RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
使得这两个变量在同一个设备运行 即可 直接train.py文件。在util.py脚本中添加。
2024-03-16 20:42:30
239
1
原创 ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
2024-03-10 14:38:29
350
1
原创 python库安装:Could not build wheels for opencv-python
python库安装:Could not build wheels for opencv-python
2023-10-22 15:57:27
772
2
原创 客户信息管理软件(模拟康师傅版本)
模拟实现基于文本界面的《客户信息管理软件》。该软件能够实现对客户对象的插入、修改和删除(用数组实现),并能够打印客户明细表。
2023-01-28 16:30:38
164
原创 scala数值类型转换
1.数值类型自动转换当 Scala 程序在进行赋值或者运算时,精度小的类型自动转换为精度大的数值类型,这 个就是自动类型转换(隐式转换)。数据类型按精度(容量)大小排序为:1)基本说明(1)自动提升原则:有多种类型的数据混合运算时,系统首先自动将所有数据转换成 精度大的那种数据类型,然后再进行计算。 (2)把精度大的数值类型赋值给精度小的数值类型时,就会报错,反之就会进行自动 类型转换。 (3)(byte,short)和 char 之间不会相互自动转换。 ...
2022-03-30 16:43:07
554
原创 c语言三字棋
游戏主代码#include "game.h"void menu(){ printf("*******************************\n"); printf("*****1.play 0.exit*****\n"); printf("*******************************\n");}//游戏的实现void game(){ char ret = 0; //数组-存放棋盘的信息 char board[ROW][COL] .
2022-03-29 22:06:22
99
原创 整型提升c语言
例1: 1字节,有符号 -> 2字节,有符号15 的二进制(补码)为 0000 11110000 1111 -> 0000 0000 0000 1111例2: 1字节,有符号 -> 2字节,有符号-15 的二进制(补码)为 1111 00010000 1111 -> 1111 1111 1111 0001例3: 1字节,无符号 -> 2字节,无符号 (相当于正数的规则,看例1)15 的二进制(补码)为 0000 11110000 1111 ->
2022-03-26 17:16:24
790
原创 c语言学习日志①
#define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>#include<string.h>//int main()//{// 1.const - 常属性//const修饰的常变量//const int n = 10;//int arr [n] = { 0 };//const int num = 2;//printf("%d\n", num);// num = 8;//printf("%d\n", num);/
2022-01-12 15:40:18
145
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人