上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 给定一个元素序列(如列表),递归的创建一颗完全二叉树 完整代码如下 #! /usr/bin/env python3 class TreeNode: """ Node of complete tree""" def __init__(self, data=0): self.data = data se 阅读全文
posted @ 2023-11-27 22:28 Guanjie255 阅读(88) 评论(0) 推荐(0)
摘要: 一、Python入门(不仅是最好的Python入门书籍,也是最好的编程入门书籍) 梦开始的地方,《Python编程,从入门到实践》(《Python Crash Course》),这本书让我学习了基本的编程思维,真正的打开了计算机科学的大门(从C语言开始学习计算机科学简直就是一个噩梦!) 1.Amaz 阅读全文
posted @ 2023-11-27 02:29 Guanjie255 阅读(275) 评论(0) 推荐(0)
摘要: 主要配置如下 syntax on "启用语法高亮功能 colorscheme desert setlocal noswapfile "不要生成swap文件 set bufhidden=hide "当buffer被丢弃的时候隐藏它 set number "显示行号 set cursorline "突出 阅读全文
posted @ 2023-11-19 19:30 Guanjie255 阅读(18) 评论(0) 推荐(0)
摘要: 问题描述:将一个Linux下某个文件夹下所有文件传输到Windows上 方法一:使用Putty在cmd.exe或PowerShell中完成 使用Putty提供的PSFTP客户端连接远程SFTP服务器 使用cd命令切换到目标文件夹Dest 使用!mkdir文件夹在本地新建一个空文件夹Source 使用 阅读全文
posted @ 2023-11-16 00:34 Guanjie255 阅读(1185) 评论(0) 推荐(0)
摘要: Windows自带的OpenSSH Putty(自由and开源and免费,首选) XShell(功能强大) FileZilla(GUI界面,专用于FTP/SFTP) 注:SSH和STFP的默认端口都是22 一、一般Windows自带OpenSSH,提供了SSH,SFTP等客户端 1.在cmd.exe 阅读全文
posted @ 2023-11-15 23:56 Guanjie255 阅读(7384) 评论(0) 推荐(0)
摘要: 顺序栈的基本模型 完整的C代码 点击查看代码 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef struct StackNode { /*metadata node of stack*/ int* data; // 阅读全文
posted @ 2023-11-13 21:34 Guanjie255 阅读(16) 评论(0) 推荐(0)
摘要: 顺序栈的基本模型 完整代码 点击查看代码 #! /usr/bin/env python3 class Stack: # stack: initiate, is_empty, is_full, push and pop def __init__(self, maxsize): self.data = 阅读全文
posted @ 2023-11-13 20:27 Guanjie255 阅读(37) 评论(0) 推荐(0)
摘要: 循环队列的基本模型 完整Python代码 点击查看代码 #! /usr/bin/env python3 class Queue: # Implement Circualr Queue def __init__(self, maxsize): self.data = [0 for i in range 阅读全文
posted @ 2023-11-13 18:50 Guanjie255 阅读(69) 评论(0) 推荐(0)
摘要: 1.循环队列的基本模型 1.1 此模型采用的队列判空条件是rear == front为真 1.2 此模型采用的队列已满条件是(rear+1)%maxsize == front为真,因此有一个数组单元(也就是front指向的数组单元)不可使用 1.3 可以在队列结点加一个成员表示最近一次对队列的操作为 阅读全文
posted @ 2023-11-13 17:35 Guanjie255 阅读(216) 评论(0) 推荐(0)
摘要: 1.想在互联网冲浪,公网IP是必不可少的(一般是路由器的公网IP) $ curl ifconfig.me 2.PC的IP一般由路由器分配,是私有IP,与局域网内的计算机通信,然后利用路由器的公网IP与互联网上的计算机通信 # 注意是ifconfig,而不是windows中的dos命令ipconfig 阅读全文
posted @ 2023-11-09 21:10 Guanjie255 阅读(570) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 9 下一页