Skip to content

科研选项过滤器 #1084

Answered by LmeSzinc
daichuanqi11 asked this question in Q&A
May 1, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

要用面向对象的方法去思考。每个科研项目都有期数、类型、时长等的属性,过滤器的作用是筛选含有特定属性的对象,没有被限定的属性 Alas 就随便选了。Friedrich0.5 的意思是筛选出 产出图纸=Friedrich,时长=0.5 的科研项目,Friedrich 的意思是筛选出 产出图纸=Friedrich 的科研项目,因为时长没有限制所以是任意时长的大帝科研。Friedrich0.5 比 Friedrich8 的时均收益高快10倍了,所以一般是分开写。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@daichuanqi11
Comment options

Answer selected by LmeSzinc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants