deepin安装u盘引导盘 ln -s /opt/apps/github.slacka.woeusb/files/woeusb /usr/bin/woeusbsudo fdisk -lsudo umount /dev/sdb1sudo woeusb --device ~/Desktop/windows.iso /dev/sdb --target-filesystem NTFS
Fiddler重发出现502 [Fiddler] The connection to ‘navi.cnki.net’ failed. System.Security.SecurityException Failed to negotiate HTTPS connection with server.fiddler.network.https> HTTPS handshake to navi.cnki.net (for #9) failed. System.IO.IOException 由于远程方已关闭传输流,身份验证失败。这
零钱兑换(递归+备忘录) leetcode链接class Solution: def coinChange(self, coins: List[int], amount: int) -> int: if amount == 0: return 0 answer_dic = {i: 1 for i in coins} @functools.lru_cache(None) def search(amount)
C语言大数乘法 2021.7.8花了2个半小时才写出来,????注意两点1. z[index] = (z[index] + result)%10; 不能写成-10,因为result可能是0-812.int sum = add_number+z[index+flag];add_number = sum/10; z[index+flag] = sum%10;不能写成add_number = (add_number+z[index+flag])/10; z[index+flag] = (add_number
pgsql:添加注释与查询注释 1.添加注释--语法comment on [type] [target] is [comment] --为表添加注释comment on table user is 'The user table';--为字段注释comment on column user.userid is 'The user ID';2.查询注释--查询字段注释,objsubid为表中字段的序号,从左侧从1开始select description from pg_descriptionjoin pg_class
发送数据localhost比127.0.0.1慢很多(win10 localhost 解析为::1 的解决办法) 启动一个tornado识别验证码服务,发送用url = “http://127.0.0.1:19952/captcha/v1”url = “http://localhost:19952/captcha/v1”localhost要4秒钟,而127.0.0.1只要0.006秒钟,也就是几毫秒ping localhost解析出来的是IPV6的::1,原因是windows有个优先解析列表,当ipv6的优先级高于ipv4时,就会出现这种情况。输入命令 netsh interface ipv6 show
迭代器与生成器区别 术语解释1,迭代器协议:对象需要提供next()方法,它要么返回迭代中的下一项,要么就引起一个StopIteration异常,以终止迭代。2,可迭代对象:实现了迭代器协议对象。list、tuple、dict都是Iterable(可迭代对象),但不是Iterator(迭代器对象)。但可以使用内建函数iter(),把这些都变成Iterable(可迭代器对象)。3,for item in Iterable 循环的本质就是先通过iter()函数获取可迭代对象Iterable的迭代器,然后对获取到的迭代器不断
超车问题 假设有一条单向通行的隧道,有一天有m辆编号为1到m的小轿车从这条隧道入口进入然后从出口驶出。每辆车只会经过这个隧道一次。全部的车都以恒定的速度经过隧道。隧道的入口和出口处均设置有交通执法摄像头。从这两个交通执法摄像头,我们可以很清楚地知道每辆车进入和驶出隧道的顺序。没有两辆车会同时进入隧道,并且也没有两辆车会同时驶出隧道。交通法规禁止车辆在隧道中超车。如果车辆i在隧道中超了车辆j,那么车辆i的车主就会面临罚款。每辆车的车主最多被罚款一次,即使他在隧道中超车多次。我们对车辆i超车辆j的定义如下:如果车辆
出生日期时间规整(time) import reimport cn2anstr1=' 2019-01-08'str2='2019-1-8 00:00:00'str3='2019年1月8日'str4='2019年01月08日'str5='2019/1/8'str6='2019/01/08 00:00'str7='2019-1-8'def process_time(text): if text: # 处理括号和空格 text = text.replace(" ","").rep
mysql文本 第六届“中国电视好演员”优秀演员奖 第三届中国银川互联网电影节网络剧单元最佳男演员奖存不进varchar(255)应该用varchar(10000)TINYTEXT 最大长度是 255 (2^8 – 1) 个字符。TEXT 最大长度是 65535 (2^16 – 1) 个字符。MEDIUMTEXT 最大长度是 16777215 (2^24 – 1) 个字符。LONGTEXT 最大长度是 4294967295 (2^32 – 1) 个字符https://www.cnblogs.com/wdpno