Nugine 最近的时间轴更新
Nugine's repos on GitHub
TypeScript · 294 人关注
deno-manual-cn
Deno 中文手册
Rust · 257 人关注
bfjit
Brainfuck JIT 虚拟机教程
Rust · 80 人关注
const-str
Compile-time string operations
Rust · 7 人关注
articles
Nugine 的文章仓库
Rust · 5 人关注
async-echo
Rust · 2 人关注
asc
Moved to https://github.com/Nugine/rust-utils
JavaScript · 2 人关注
chaoxing-speedup
C++ · 1 人关注
algorithm
Rust · 1 人关注
bpnn-rs
An implementation of BPNN in Rust
0 人关注
acme.sh
A pure Unix shell script implementing ACME client protocol
0 人关注
advisory-db
Security advisory database for Rust crates published through crates.io
Rust · 0 人关注
aligned-utils
Python · 0 人关注
Amphion
Amphion (/æmˈfaɪən/) is a toolkit for Audio, Music, and Speech Generation. Its purpose is to support reproducible research and help junior researchers and engineers get started in the field of audio, music, and speech generation research and development.
0 人关注
async-fuse
[WIP] asynchronous FUSE implementation
Rust · 0 人关注
async-rdma
Easy to use RDMA API in Rust async
0 人关注
aws-sdk-php
Official repository of the AWS SDK for PHP (@awsforphp)
Rust · 0 人关注
based64
Simple Base64 functions for Rust chads.
Fortran · 0 人关注
benchmark
https://gensoukyo.me/benchmark/
0 人关注
BiliRoaming
哔哩漫游,解除B站客户端番剧区域限制的Xposed模块,并且提供其他小功能。An Xposed module that unblocks bangumi area limit of BILIBILI with miscellaneous features.
C++ · 0 人关注
bpftime
Userspace eBPF runtime for Observability, Network & General Extensions Framework
0 人关注
clash
A rule-based tunnel in Go.
TypeScript · 0 人关注
clash-verge
A Clash GUI based on tauri. Supports Windows, macOS and Linux.
0 人关注
clashX
Rust · 0 人关注
compiler-experiment
0 人关注
cproxy
Easy per application transparent proxy built on cgroup.
0 人关注
crev-proofs
Crev proof repository
0 人关注
csi
Rust · 0 人关注
data-structure
learn data structure with Rust
Rust · 0 人关注
datenlord
DatenLord, Computing Defined Storage, an application-orientated, cloud-native distributed storage system
Rust · 0 人关注
deno
A secure JavaScript and TypeScript runtime
Nugine

Nugine

V2EX 第 266443 号会员,加入于 2017-11-11 20:48:00 +08:00
Nugine 最近回复了
不太明白你的意思,是筛选出数字列表中属于区间(a,b)的数字吗?

那么可以用列表推导式:[x for x in data if a<x<b]

匿名函数 lambda a,b,data:[x for x in data if a<x<b]

写成函数就是
def filter_data(a,b,data):
return [x for x in data if a<x<b]

用高阶函数 filter:
def filter_data(a,b,data):
return filter(lambda x:a<x<b,data)
2017-12-22 00:50:43 +08:00
回复了 Ehco1996 创建的主题 Python 写了个爬虫用的小工具: LazySpider 发布啦!
这个工具给我一些启发,以后可能会参与吧。
不过真正要用起来的话,我会选择照着源码按自己的方式重写一遍,嵌入到自己的东西里去。
(就是抄一遍……)
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2520 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 14:21 · PVG 22:21 · LAX 07:21 · JFK 10:21
Developed with CodeLauncher
♥ Do have faith in what you're doing.