- 博客(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 81
原创 AES加密,参数一致,为何加密出来结果会不一致?这样后端肯定无法正常解密了呀……
使用Crypto-JS库的AES加密 出来的两者结果不一样。是哪里有参数没设置对吗?
2021-01-27 23:36:15 2704
原创 python内置模块fileinput中inplace参数的疑问
python内置模块fileinput中inplace参数的疑问!!设置inplace参数为1的时候,会吧标准输出重定向到所打开的文件中。我有这么个文件test_file.txtfirst line: aaasecond line: bbbthird line: ccclast line: aaa我现在想把所有的a转换成大写A# -*- encoding: utf-8 -*-# @ModuleName: test_file_input# @Function: # @Author:
2020-12-04 23:54:09 455 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 1306
原创 django的用户表是怎么加密的?带你debug走一走看一看!
1、编写django接口(1)视图viewfrom django.http import HttpResponsefrom django.contrib.auth.hashers import make_password, check_passworddef test_auth(request): print('testing hashers') a = make_password('TesT1!2@3#') print(a) b = check_password
2020-07-29 22:30:00 409
原创 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 185
原创 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 220
原创 Linux 网卡配置静态IP
Linux 网卡配置静态IPvi /etc/sysconfig/network-scripts/ifcfg-xxxTYPE=EthernetDEVICE=xxxNAME=xxxONBOOT=yesBOOTPROTO=static # static表示静态IP 其他还有dhcp bootp noneIPADDR=xx.xx.xx.xxGATEWAY=xx.xx.xx.xxNETMASK=xxx.xxx.xxx.xHWADDR=xx:xx:xx.... # 硬件地址HardWareAd
2020-05-09 00:05:20 151
原创 Android App ActivityLifeCycle(安卓活动生命周期)
Android App ActivityLifeCycle(安卓活动生命周期)关于返回栈活动的4个运行状态 (运行-暂停-停止-销毁)活动的7个回调方法(onCreate-onStart-onResume-onPause-onStop-onDestory-onRestart)3种生存期(完整生存期-可见生存期-前台生存期)这些内容都可以在本站中其他博主的博客里找到,本博客不再赘述。...
2019-03-25 11:02:38 1179
原创 Linux 管道命令符 && 命令行的通配符 && 常用的转义字符
sushangh10学习笔记:《Linux 就该这么学》 刘遄 著1.管道命令符 |执行格式command A | command B作用概括把前一个命令原本要输出到屏幕的标准正确数据当作是后一个命令的标准输入如ifconfig | tr [a-z] [A-Z]原本的标准输出将所有[a-z]替换成[A-Z] (小写-大写)管道命令符不止能用一次,可以多次使用。将管道命令符...
2018-12-10 20:14:37 1217 1
原创 Linux输入输出重定向
sushangh10学习笔记:《Linux 就该这么学》 刘遄 著与文件读写操作有关的重定向技术的5种模式1.标准覆盖输出重定向2.标准追加输出重定向3.错误覆盖输出重定向4.错误追加输出重定向5.输入重定向输入重定向:把文件导入到命令中输出重定向:把原本要输出到屏幕(或终端)的数据信息写入到文件中先看下图:可以发现:readme.txt文件存在,因此ls -l 指令就输...
2018-12-10 14:13:07 699
原创 sushangh10 Linux
第一篇 试一下:Linux学习:date +"%j"show day of year (1 … 366)
2018-12-08 19:43:06 119
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人