- 博客(12)
- 收藏
- 关注
原创 下载PyQt5失败ReadTimeoutError及Lib\site-packages\PyQt5下找不到designer.exe解决方法
1.下载PyQt5失败ReadTimeoutError使用下列语句pip install PyQt5 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com参考自:https://blog.youkuaiyun.com/sinat_26811377/article/details/996988072.Lib\site-packages\PyQt5下找不到designer.exe如果找了很多地方实在找不到,建议用如下指令下载 PyQt5
2021-02-05 19:40:42
460
原创 Android--LitePal
对象关系映射(ORM) :我们的编程语言使用的是面向对象语言,数据库用的是关系型数据库,将面 向对象语言和关系型数据库建立的一种映射关系成为对象关系映射。LitePal:开源的Android数据库框架,采用了对象关系映射(ORM),并将常用的数 据库功能进行了封装,使得不用编写一行SQL语句就可以完成各种建表 和增删改查德操作。 配置LitePal(1)编辑app/build.gradle,在dependencies中添加如下代码来声明开源库的引用:compile 'org.litepal.and
2020-05-13 19:08:43
258
原创 CSAPP——chap10 I/O
一、 Linux 下 ls 命令ls命令是Linux中最常用的命令之一。ls是list的缩写。用来打印当前目录清单或者打印出指定目录下的文件及文件清单。ls命令在打印文件清单时,还可以查看文件权限、目录信息等等。可以使用帮助命令查看详细命令参数:man ls或ls --help。举例 ls -l解释:第1列第1个字母d:目录(文件夹)-(减号):普通文件l(小写l字符):链...
2019-12-07 20:26:11
176
原创 CSAPP——chap7 Link
一、gcc编译程序的四个过程预处理(hello.c --> hello.i)1.命令:gcc -E hello.c -o hello.i 或 cpp hello.c > hello.i2.过程操作:处理源文件中以“ # ”开头是预编译指令,包括:(1)删除“ #define ”并展开所定义的宏。(2)处理所有文件预编译指令,如“ #if ”,“ ifdef ”,“ #end...
2019-12-07 20:25:42
479
原创 CSAPP——chap8 fork
fork函数调用一次,返回两次。一次是在调用父进程中,一次是在新创建的子进程中。在父进程ork函数返回子进程的 pid (大于0的数);在子进程中,fork函数返回0。进程图进程图是刻画程序语句的偏序的一种简单的前趋图。每个顶点a对应于一条程序语句的执行。有向边a->b表示语句a发生在语句b之前。边上可以标注一些信息,例如一个变量的当前值。对应于printf语句的顶点可以标记上prin...
2019-12-07 20:25:13
207
原创 CSAPP:fsum(gcc)
结合律交换律代码全览#include <stdio.h>#include <stdlib.h>#include <string.h>#define BUFSIZE 256int main(int argc, char *argv[]) { char prefix[BUFSIZE]; char next[BUFSIZE]; int i;...
2019-05-28 21:41:10
194
原创 CSAPP:locate(gcc)
代码全览#include <stdlib.h>#include <stdio.h>#include <unistd.h>static void show_pointer(void *p, char *descr) { // printf("Pointer for %s at %p\n", descr, p); printf("%s\...
2019-05-28 21:31:34
115
原创 CSAPP:bufdemo(gcc)
数据存在数组里 数据存在栈里代码全览/* Demonstration of buffer overflow */#include <stdio.h>#include <stdlib.h>/* Implementation of library function gets() */char *gets(char *dest){ int c = getch...
2019-05-26 14:59:12
160
原创 CSAPP:runaway(gcc)
查看电脑中所分配栈的大小。代码全览/* Example of deep recursion */#include <stdio.h>#include <stdlib.h>int recurse(int x) { int a[1<<15]; /* 4 * 2^15 = 64 KB */ printf("x = %d. a at %p...
2019-05-26 13:46:04
155
原创 CSAPP:sq(gcc)
x*x不一定大于等于0。代码全览#include <stdio.h>#include <stdlib.h>int sq(int x) { return x*x;}int main(int argc, char *argv[]) { int i; for (i = 1; i < argc; i++) { int x = atoi(a...
2019-05-26 13:30:14
146
原创 CSAPP: struct(gcc)
该程序说明,在定义数组时要注意数组溢出的问题。代码全览#include <stdio.h>#include <stdlib.h>typedef struct { int a[2]; double d;} struct_t;double fun(int i) { volatile struct_t s; s.d = 3.14; ...
2019-05-26 13:10:35
174
原创 CSAPP:show-bytes(gcc)
该程序可用于测试不同类型的数据在计算机内存储所需要的字节数,以及在每一个字节里存储的数据,并能够看出所使用的计算机是大端模式还是小端模式。代码全览/* show-bytes - prints byte representation of data *//* $begin show-bytes */#include <stdio.h>/* $end show-bytes */...
2019-05-26 12:42:17
304
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人