摘要: 参考博文: https://blog.csdn.net/weixin_39446611/article/details/104261264?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFro 阅读全文
posted @ 2021-04-29 14:27 txzing 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 根据这三篇文章: http://c.biancheng.net/view/8077.html http://c.biancheng.net/view/8114.html https://blog.csdn.net/weixin_55710926/article/details/115600738?u 阅读全文
posted @ 2021-04-28 11:12 txzing 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 在C语言中#必须是一行中的首个非空格字符,也就是说#前面可以有空格,但是不能有其他字符。 用下面的方法,方便更新数组内容,直观 main.c文件: #include <stdio.h>#include <string.h> static char city_name[][20] = {#includ 阅读全文
posted @ 2021-04-15 10:52 txzing 阅读(49) 评论(0) 推荐(0) 编辑
摘要: pip install numpy -i https://pypi.douban.com/simple 用pip命令下载大型库时速度慢,换源下载后下载速度很快 -i https://pypi.douban.com/simple pip3 install numpy scipy matplotlib 阅读全文
posted @ 2021-04-13 10:34 txzing 阅读(194) 评论(0) 推荐(0) 编辑
摘要: import _thread #线程import time signal_value = 0 def th1(): a = 0 global signal_value while(1): if(signal_value == 0): print("a") signal_value = 1 a+=1 阅读全文
posted @ 2021-04-13 10:15 txzing 阅读(41) 评论(0) 推荐(0) 编辑
摘要: #include <stdlib.h>#include <stdio.h>int Callback_1(int a) ///< 回调函数1{ printf("Hello, this is Callback_1: a = %d \n", a); return 0;} int Callback_2(in 阅读全文
posted @ 2021-04-12 19:55 txzing 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 引用:https://www.cnblogs.com/xiaojwang/p/11331202.html 阅读全文
posted @ 2021-04-09 17:29 txzing 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 在安装软件时,出现问题 执行: sudo rm /var/lib/dpkg/lock-frontend 解决问题 阅读全文
posted @ 2021-04-01 14:12 txzing 阅读(46) 评论(0) 推荐(0) 编辑
摘要: verilog代码: module div_3#(parameter DIV = 7)( //改变参数DIV的值就可以改变分频时钟的频率 input clk ,//时钟 input rst_n ,//复位 //输出信号定义 output wire clk_out ); //信号定义 reg [3:0 阅读全文
posted @ 2021-03-11 14:41 txzing 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 算术移位指令对带符号数进行移位。逻辑移位指令对无符号数进行移位。 算术左移、右移,逻辑左移、右移的图示如下 算术左移和算术右移主要用来进行有符号数的倍增、减半; 逻辑左移和逻辑右移主要用来进行无符号数的倍增、减半。 算术左移和逻辑左移一样都是右边补0: 比如 00101011 算术左移一位:0101 阅读全文
posted @ 2021-03-05 10:57 txzing 阅读(2120) 评论(0) 推荐(0) 编辑