摘要:
ipv4 IPv6的正则匹配表达式 参考: https://www.cnblogs.com/brogong/p/7929298.html 阅读全文
posted @ 2019-07-18 23:34
anobscureretreat
阅读(2357)
评论(0)
推荐(0)
摘要:
def str_to_hex(s): return ' '.join([hex(ord(c)).replace('0x', '') for c in s]) def hex_to_str(s): return ''.join([chr(i) for i in [int(b, 16) for b in s.split(' ')]]) def str_to_bin(s): ... 阅读全文
posted @ 2019-07-18 22:07
anobscureretreat
阅读(13888)
评论(0)
推荐(1)
摘要:
这个错误很明显 ,是因为你关闭了套接字对象后,又再次去调用了套接字对象,此时套接字链接已经被关闭,你不能再去调用,所以才会出现这种错误,复查一下自己的代码,很快就可以解决。 参考: https://blog.csdn.net/weixin_40612082/article/details/80032 阅读全文
posted @ 2019-07-18 22:05
anobscureretreat
阅读(6725)
评论(0)
推荐(0)
摘要:
topic:bp_nav_statetype:std_msgs/UInt16 值:0x101-导航开始;0x103-导航结束;0x104-导航成功;0x105-导航失败;0x106-导航取消;0x201-充电第二阶段开始;0x203-充电第二阶段结束;0x204-充电第二阶段成功;0x205-充电第 阅读全文
posted @ 2019-07-18 22:03
anobscureretreat
阅读(214)
评论(0)
推荐(0)
摘要:
经过检查发现,是由于客户端请求的链接,在一次循环之后,产生的套接字关闭,没有新的客户端套接字进行请求连接,所以产生broken pipe错误 阅读全文
posted @ 2019-07-18 22:03
anobscureretreat
阅读(2267)
评论(0)
推荐(0)
摘要:
常用的地址家族AF_UNIX:基于文件,实现同一主机不同进程之间的通信AF_INET:基于网络,适用于IPv4AF_INET6:基于网络,使用于IPv6 常见的连接类型SOCK_STREAM:即TCP/IP。面向连接的套接字,通信之前必须建立可靠的连接。面向连接的套接字提供序列化的、可靠的和不重复的 阅读全文
posted @ 2019-07-18 22:00
anobscureretreat
阅读(348)
评论(0)
推荐(0)
摘要:
import sys, select, tty, termios old_attr = termios.tcgetattr(sys.stdin) tty.setcbreak(sys.stdin.fileno()) print('Please input keys, press Ctrl + C to quit') while(1): if select.select([s... 阅读全文
posted @ 2019-07-18 21:58
anobscureretreat
阅读(5588)
评论(0)
推荐(0)
摘要:
Python2.x中的input()函数input()函数让我们明确我们输入的是数字格式还是字符格式,就是我们自己要知道我们想要的是什么,数字格式直接输入,字符格式必须加上单引号或者双引号,以确定我们输入的是字符串。 Python2.x中的raw_input()函数:>>> a = raw_inpu 阅读全文
posted @ 2019-07-18 21:58
anobscureretreat
阅读(855)
评论(0)
推荐(0)
摘要:
http://docs.ros.org/api/std_msgs/html/msg/String.html 阅读全文
posted @ 2019-07-18 01:04
anobscureretreat
阅读(2062)
评论(0)
推荐(0)
摘要:
json->string str = json.dumps(jsonobj) bytes->string str = str(bytes,‘utf-8’) string->json json = json.loads(str) 参考: https://www.cnblogs.com/xiandeda 阅读全文
posted @ 2019-07-18 01:02
anobscureretreat
阅读(1164)
评论(0)
推荐(0)
摘要:
参考: https://www.cnblogs.com/niuu/p/10106897.html https://www.cnblogs.com/Lin-Yi/p/7640147.html 阅读全文
posted @ 2019-07-18 01:00
anobscureretreat
阅读(9509)
评论(0)
推荐(1)
摘要:
PX为单位 在Web页面初期制作中,我们都是使用“px”来设置我们的文本,因为他比较精确和固定。 只要页面某元素设置了px字体大小,其子元素/子孙元素未设置字体大小或设置的字体大小css优先级没父元素高的话,该子元素/子孙元素会继承其父元素的px字体大小设置 。 这种方法存在一个问题:当用户在浏览器 阅读全文
posted @ 2019-07-18 00:44
anobscureretreat
阅读(3538)
评论(0)
推荐(0)
摘要:
永远以最新的IE版本模式来显示网页 <meta http-equiv="X-UA-Compatible" content="IE=7">#以上代码告诉IE浏览器,无论是否用DTD声明文档标准,IE8/9都会以IE7引擎来渲染页面。<meta http-equiv="X-UA-Compatible" 阅读全文
posted @ 2019-07-18 00:31
anobscureretreat
阅读(9632)
评论(0)
推荐(0)
摘要:
demo1 输出 demo2 使用send传递一个值到yield的那行,于是res=7 输出 demo3 使用生成器的场景,你有一个10000个元素的列表要处理,如果用List的话,会占用更大的空间,比如说取0,1,2,3,4,5,6............10000 这个时候range(10000 阅读全文
posted @ 2019-07-18 00:28
anobscureretreat
阅读(232)
评论(0)
推荐(0)
摘要:
我们需要牢记两点: ①__proto__和constructor属性是对象所独有的; ② prototype属性是函数所独有的,因为函数也是一种对象,所以函数也拥有__proto__和constructor属性。__proto__属性的作用就是当访问一个对象的属性时,如果该对象内部不存在这个属性,那 阅读全文
posted @ 2019-07-18 00:18
anobscureretreat
阅读(185)
评论(0)
推荐(0)

浙公网安备 33010602011771号