第一次个人编程作业代码修改
| 博客班级 | https://edu.cnblogs.com/campus/fzzcxy/2018SE1 |
|---|---|
| 作业要求 | https://edu.cnblogs.com/campus/fzzcxy/2018SE1/homework/11195 |
| 作业目标 | 描述对代码的修改过程 |
| 作业源代码 | https://gitee.com/xie-qiqin/personal |
| 学号 | 211806416 |
让我看看你的代码
1.源代码:[(https://gitee.com/hshzbc/personal/tree/master/)]

2.源代码:https://gitee.com/yang-xianzhi/personal/issues

3.源代码:https://gitee.com/Icarus727/personal

4.源代码:https://gitee.com/michelle1147/personal/issues

5.源代码:https://gitee.com/hu-yubin/personal

容我再改一改
第一次修改:解决了输出为0的情况,并且添加了对互评经验的判断
在原先的代码里认为每个interaction-row的最后一个节点即为经验,但是通过观察还有互评加经验的,都在课堂小测,所以在课堂小测模块里获取的最后一个节点的互评增加的经验,并非他原有的
一下为问题与修改后的代码


第二次修改:加强了代码的健壮性,并制作了API文档,减少了不必要的注释代码(以前用来测试的忘记删了)
以下为问题:

以下为修改后的:

第三次修改:采用了链式编程(后来给了提问题的人看他说有点阴间)
问题描述:

修改后的代码:
Element span_7 = interaction_row.get(i).children().get(1).children().get(2).children().get(0).children().get(6);//已参与 
Element span_8= interaction_row.get(i).children().get(1).children().get(2).children().get(0).children().get(interaction_row.get(i).children().get(1).children().get(2).children().get(0).children().size()-1);//经验值
Element span_6= interaction_row.get(i).children().get(1).children().get(2).children().get(0).children().get(interaction_row.get(i).children().get(1).children().get(2).children().get(0).children().size()-3);
commit截图


浙公网安备 33010602011771号