Java 读取txt文件 并对各个属性列分别排列?
txt文档内容:idheadachemusclepaintemperatureflue1yesyesnormalnoe2yesyeshighyese3yesyesvery...
txt文档内容:
id headache muscle pain temperature flu
e1 yes yes normal no
e2 yes yes high yes
e3 yes yes very high yes
e4 no yes normal no
e5 no no high no
e6 no yes very high yes
e7 yes no high yes
e8 no yes normal no
e9 yes yes normal yes
e10 no no high yes
输出结果:
id headache muscle pain temperature flu
e1 yes yes normal no
e2 yes yes high yes
e3 yes yes very high yes
e7 yes no high yes
e9 yes yes normal yes
e4 no yes normal no
e5 no no high no
e6 no yes very high yes
e8 no yes normal no
e10 no no high yes
..................
要求输出结果对齐 并能够同时输出muscle pain temperature flu 列的排序 展开
id headache muscle pain temperature flu
e1 yes yes normal no
e2 yes yes high yes
e3 yes yes very high yes
e4 no yes normal no
e5 no no high no
e6 no yes very high yes
e7 yes no high yes
e8 no yes normal no
e9 yes yes normal yes
e10 no no high yes
输出结果:
id headache muscle pain temperature flu
e1 yes yes normal no
e2 yes yes high yes
e3 yes yes very high yes
e7 yes no high yes
e9 yes yes normal yes
e4 no yes normal no
e5 no no high no
e6 no yes very high yes
e8 no yes normal no
e10 no no high yes
..................
要求输出结果对齐 并能够同时输出muscle pain temperature flu 列的排序 展开
3个回答
展开全部
就是根据id 和headache
这两列排序??
这两列排序??
追问
根据 headache muscle pain temperature flu 排列
就是根据headache排列有一个输出
根据muscle pain有 一个输出
相类似的 temperature 和flu
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你试试 2个/t 吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询