- 博客(10)
- 收藏
- 关注
原创 shell脚本示例
#!/bin/bash# 使用-n参数,并在最后加上一个空格,可以使得不换行echo -n "hello world "echo "hello world"# $后面的数字会当做引用一个变量echo "the cost is $15"echo "the cost is \$15" # 在变量、等号和值之间不能出现空格,shell脚本会自动决定变量值的类型var1=10var2...
2019-10-26 20:16:46 126
原创 ubuntu中为pip和pip3配置豆瓣源
在家目录中新建文件夹~/.config/pipadog@E531:pip$ pwd/home/adog/.config/pipadog@E531:pip$ lspip3.conf pip.confadog@E531:pip$ 在~/.config/pip目录下新建两个文件pip.conf和pip3.conf,分别对应pip命令和pip3命令。pip.conf和pip3.conf文...
2019-10-21 11:50:07 1075
原创 pyqt5代码实例2
1定义一个Widget# -*- coding: utf-8 -*-# Form implementation generated from reading ui file 'untitled.ui'## Created by: PyQt5 UI code generator 5.13.1## WARNING! All changes made in this file will b...
2019-10-16 21:40:01 1177
原创 pyqt5代码示例
# -*- coding: utf-8 -*-# Form implementation generated from reading ui file 'untitled.ui'## Created by: PyQt5 UI code generator 5.13.1## WARNING! All changes made in this file will be lost!fr...
2019-10-15 21:23:04 1033
原创 解决ubuntu16.04中打开txt文档乱码
安装dconf-editorsudo apt install dconf-editor运行命令dconf-editordconf-editor然后在弹出的窗体中按ctrl f搜索encodings然后把candidate-encodings对应的value改为如下所示['GB18030', 'GB2312', 'GBK', 'UTF-8', 'BIG5', 'CURRENT', ...
2019-10-13 22:13:18 288
原创 求最长回文子串的中心扩展算法
给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。示例 1:输入: “babad”输出: “bab”注意: “aba” 也是一个有效答案。示例 2:输入: “cbbd”输出: “bb”来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-palindromic-subs...
2019-10-04 11:21:23 349
原创 在ubuntu中查看chm文件
安装aptitudesudo apt-get install aptitude安装kchmviewersudo aptitude install kchmviewer打开chm文件
2019-10-04 09:47:08 3523 2
原创 [input]
题目Mom? how can I pass my input to a computer program?ssh input2@pwnable.kr -p2222 (pw:guest)c语言代码/* * d.c * * Created on: 2019年10月3日 * Author: adog */#include <stdio.h>#include ...
2019-10-03 16:25:49 219
原创 [passcode]
Mommy told me to make a passcode based login system.My initial C code was compiled without any error!Well, there was some compiler warning, but who cares about that?ssh passcode@pwnable.kr -p2222 (...
2019-10-01 20:54:28 593
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人