![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rust
B&U
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈DEBUG...............................
展开
-
thread ‘<unnamed>‘ panicked at ‘assertion failed: `(left == right)`
这里写自定义目录标题rust 遇到的问题rust 遇到的问题thread ‘’ panicked at ‘assertion failed: (left == right)left: 0,right: 1: incorrect number of parameters: expected 1, got 0’, /home/cz/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libstd/macr原创 2021-03-05 15:17:08 · 1589 阅读 · 1 评论 -
rust 获取10位时间戳
rust 获取10位时间戳///在Cargo.toml的dependencies中添加依赖:[dependencies]time = "0.1.41"use time;let time = time::get_time();println!("{}",format!("{:#?}",time.sec));/// 输出格式:1603183186原创 2020-10-20 16:45:12 · 1554 阅读 · 0 评论 -
用python的socket写一个简单的server,用户监听某一端口,接受来自外部设备推送的数据
用python的socket写一个简单的server,用户监听某一端口,接受来自外部设备推送的数据。import socketimport sysimport timedef detect(): try: s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.setsockpot(socket.SQL_SOCKET, socket.SO_REUSEADDR,1) s.bind(('0.0.0.0',8088))原创 2020-06-24 16:33:01 · 2054 阅读 · 2 评论