- 博客(12)
- 收藏
- 关注
原创 canvas
```html <html> <div style="height: 1920px; width: 1080px;"> <canvas id="myCanvas" height="600px" width="900px" @click="handleClick" > If u see this, it means that your broser do not support canvas .
2021-07-25 22:21:08
154
原创 AES加密,参数一致,为何加密出来结果会不一致?这样后端肯定无法正常解密了呀……
使用Crypto-JS库的AES加密 出来的两者结果不一样。 是哪里有参数没设置对吗?
2021-01-27 23:36:15
3036
1
原创 python内置模块fileinput中inplace参数的疑问
python内置模块fileinput中inplace参数的疑问!! 设置inplace参数为1的时候,会吧标准输出重定向到所打开的文件中。 我有这么个文件 test_file.txt first line: aaa second line: bbb third line: ccc last line: aaa 我现在想把所有的a转换成大写A # -*- encoding: utf-8 -*- # @ModuleName: test_file_input # @Function: # @Author:
2020-12-04 23:54:09
599
1
原创 随机数生成+直接插入排序【java实现】
一、生成随机数组 java.util.Random public int[] randomByRandom(int randomLength) { int[] insertRandomList = new int[randomLength]; Random r = new Random(); // 若给定seed种子值,则生成的随机数恒为一样。是伪随机方法。 for (int i = 0; i < randomLength; i++) {
2020-08-10 23:49:53
1504
原创 django的用户表是怎么加密的?带你debug走一走看一看!
1、编写django接口 (1)视图view from django.http import HttpResponse from django.contrib.auth.hashers import make_password, check_password def test_auth(request): print('testing hashers') a = make_password('TesT1!2@3#') print(a) b = check_password
2020-07-29 22:30:00
522
原创 windows下使用docker
一、下载docker-desktop 并安装 二、启动docker需要打开hyper-v服务 1.windows功能打开 2. CPU对的SVM Mode要enabled 三、下载docker镜像 https://hub.daocloud.io/repos/bf207788-d7de-4044-bdeb-521a998f748b 下载docker镜像 docker pull xxx 查看下载了的镜像 用镜像启动容器 即可 ...
2020-07-24 21:33:39
311
原创 Enumerate方法 python
enumerate 中文意为 枚举 Python 有个内置函数 enumerate 官方文档如下: enumerate(iterable, start=0) Return an enumerate object. iterable must be a sequence, an iterator, or some other object which supports iteration. The next() method of the iterator returned by enumerate() re
2020-07-11 15:18:09
369
原创 Linux 网卡配置静态IP
Linux 网卡配置静态IP vi /etc/sysconfig/network-scripts/ifcfg-xxx TYPE=Ethernet DEVICE=xxx NAME=xxx ONBOOT=yes BOOTPROTO=static # static表示静态IP 其他还有dhcp bootp none IPADDR=xx.xx.xx.xx GATEWAY=xx.xx.xx.xx NETMASK=xxx.xxx.xxx.x HWADDR=xx:xx:xx.... # 硬件地址HardWareAd
2020-05-09 00:05:20
263
原创 Android App ActivityLifeCycle(安卓活动生命周期)
Android App ActivityLifeCycle(安卓活动生命周期) 关于 返回栈 活动的4个运行状态 (运行-暂停-停止-销毁) 活动的7个回调方法(onCreate-onStart-onResume-onPause-onStop-onDestory-onRestart) 3种生存期(完整生存期-可见生存期-前台生存期) 这些内容都可以在本站中其他博主的博客里找到,本博客不再赘述。 ...
2019-03-25 11:02:38
1383
原创 Linux 管道命令符 && 命令行的通配符 && 常用的转义字符
sushangh10学习笔记: 《Linux 就该这么学》 刘遄 著 1.管道命令符 | 执行格式command A | command B 作用概括把前一个命令原本要输出到屏幕的标准正确数据当作是后一个命令的标准输入 如ifconfig | tr [a-z] [A-Z] 原本的标准输出 将所有[a-z]替换成[A-Z] (小写-大写) 管道命令符不止能用一次,可以多次使用。将管道命令符...
2018-12-10 20:14:37
1441
1
原创 Linux输入输出重定向
sushangh10学习笔记: 《Linux 就该这么学》 刘遄 著 与文件读写操作有关的重定向技术的5种模式 1.标准覆盖输出重定向 2.标准追加输出重定向 3.错误覆盖输出重定向 4.错误追加输出重定向 5.输入重定向 输入重定向:把文件导入到命令中 输出重定向:把原本要输出到屏幕(或终端)的数据信息写入到文件中 先看下图: 可以发现: readme.txt文件存在,因此ls -l 指令就输...
2018-12-10 14:13:07
826
原创 sushangh10 Linux
第一篇 试一下: Linux学习: date +"%j" show day of year (1 … 366)
2018-12-08 19:43:06
183
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅