摘要:
这样就建立了一个目录,但是路径中该怎么加上变量呢? 阅读全文
posted @ 2020-08-18 11:43
看星星的派大星
阅读(374)
评论(0)
推荐(0)
摘要:
set /a var=11+22 /a参数表示表达式 set var=11, 没有参数,直接设置变量的值 set /p var="变量的值" /p 表示提示语 脚本内容如下 注意:如果start /b set.bat 会出现cmd狂飙的情况,应该与/b参数有关。 阅读全文
posted @ 2020-08-16 09:43
看星星的派大星
阅读(265)
评论(0)
推荐(0)
摘要:
bash 与sh 好像是相同的shell, 都是B shell 命令为: vim /etc/shells 阅读全文
posted @ 2020-08-15 23:44
看星星的派大星
阅读(499)
评论(0)
推荐(0)
摘要:
按位与: 相当于集合中的交集, 0&0=0, 0&1=0, 1&0=0, 1&1=1 按位或:相当于集合中的并集,0|0=0, 0|1=1, 1|0=1, 1|1=1 按位异或:相同为0,不相同为1, 0^0=0, 1^1=0, 0^1=1, 1^0=1, 可用与加密与解密。 文件名为encrypt 阅读全文
posted @ 2020-08-15 23:37
看星星的派大星
阅读(972)
评论(0)
推荐(0)
摘要:
内地采用GBK编码,占用两个字节,在txt中叫ANSI 台湾采用Big5编码,占用两个字节 Unicode汉字与英文均占3个字节 utf-8汉字占用3个字节,英文占一个字节 阅读全文
posted @ 2020-08-14 23:14
看星星的派大星
阅读(320)
评论(0)
推荐(0)
摘要:
:: 此行是注释 @echo off echo "hello world" call call.bat pause @echo off rem helloword.bat call this bat ipconfig pause 虽然有两个pause但是cmd只需要一个 阅读全文
posted @ 2020-08-14 22:55
看星星的派大星
阅读(228)
评论(0)
推荐(0)
摘要:
1、首先pip安装myqr(python 的包) 2、myqr --version 可以查看参数,尽管这是查看版本的命令 3、 通过运行脚本 from MyQR import myqr def main(): myqr.run(words = "https://www.cnblogs.com/zij 阅读全文
posted @ 2020-08-14 11:21
看星星的派大星
阅读(302)
评论(0)
推荐(0)
摘要:
from PIL import Image def decode(image): #得到图片的大小 width, height = image.size ls = [] for i in range(height): for j in range(width): #获得每个位置上的rgb值 r, g 阅读全文
posted @ 2020-08-14 10:59
看星星的派大星
阅读(512)
评论(0)
推荐(0)
摘要:
from PIL import Image import math def decode(text): str_len = len(text) width = math.ceil(str_len ** 0.5) height = width #生成一张图片 im = Image.new("RGB", 阅读全文
posted @ 2020-08-14 09:14
看星星的派大星
阅读(633)
评论(0)
推荐(0)
摘要:
首先打开记事本 然后打开txt文件。 阅读全文
posted @ 2020-08-14 09:04
看星星的派大星
阅读(3249)
评论(0)
推荐(0)
浙公网安备 33010602011771号