一切皆文件,都是文件的操作 #三种I/O设备 ##标准的输入输出 程序:指令+数据 读入数据:Input 输出数据:Output 系统中打开一个文件系统自动分配文件描述符,除了0,1,2是固定的,其他的都是不固定的 打开的文件都有一个fd:file descriptor (文件描述符) ##Linu ...
分类:
系统相关 时间:
2020-06-20 22:06:14
阅读次数:
73
问题: 给定字符串s,和可进行交换的index对数组。 对字符串s的各个位置index,可根据交换数组所示的两两交换(次数不限),求进行交换后,可得最小的字符串。 Example 1: Input: s = "dcab", pairs = [[0,3],[1,2]] Output: "bacd" E ...
分类:
其他好文 时间:
2020-06-20 15:49:13
阅读次数:
53
问题: 给定数组arr2,所含元素唯一, 给定数组arr1,对arr1排序,使得arr1的元素相对顺序为arr2的顺序,不存在于arr2中的元素,按照升序排列。 Example 1: Input: arr1 = [2,3,1,3,2,4,6,7,9,2,19], arr2 = [2,1,4,3,9, ...
分类:
其他好文 时间:
2020-06-20 11:43:42
阅读次数:
40
回溯法 思路: dfs,深度优先搜索。 代码: class Solution: def restoreIpAddresses(self, s: str) -> List[str]: def valid(segment): return int(segment) <= 255 if segment[0 ...
分类:
其他好文 时间:
2020-06-19 19:17:15
阅读次数:
63
地址 http://poj.org/problem?id=1258 Sample Input 4 0 4 9 21 4 0 8 17 9 8 0 16 21 17 16 0 Sample Output 28 解答 根据题目的输入格式 还是使用prim比较好 #include <iostream> # ...
分类:
其他好文 时间:
2020-06-19 13:48:51
阅读次数:
41
at if not, Start Atd Service systemctl status atd.service //output: ┌─[root@nedrain]─[~] └──? $systemctl status atd.service ● atd.service - Job spooli ...
分类:
系统相关 时间:
2020-06-19 13:45:08
阅读次数:
66
首先,实现可以参考这篇博客 https://www.cnblogs.com/yllinux/p/7065331.html 我的代码跟网上的是一样的,师兄给出了其他写法,有空再补。 module coder_83( input [7:0] data_in, input en_in_n, output ...
分类:
其他好文 时间:
2020-06-18 23:26:26
阅读次数:
140
**个人项目所建的表,可根据实际情况更改表数据 ++++++++++++++++存储过程查询分页+++++++++++++++++++++++++++++++++++--if(exists(select * from sys.objects where name='proc_UserShowPage ...
分类:
其他好文 时间:
2020-06-18 21:33:46
阅读次数:
64
项目需要新开发一个发邮箱功能,以前做过,以为信手拈来,没想到花了两个小时,记录踩的坑 $mail = new PHPMailer(); $mail->SMTPDebug = SMTP::DEBUG_SERVER; // Enable verbose debug output $mail->isSMT ...
分类:
Web程序 时间:
2020-06-18 11:09:17
阅读次数:
107
1078 Hashing (25分) The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of ...
分类:
其他好文 时间:
2020-06-17 12:38:08
阅读次数:
61