在progrom一切都得到了保证 [英] in the progrom everything is repaeated

查看:94
本文介绍了在progrom一切都得到了保证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然代码确实有效,但它会不断重复所有内容两次, 

while the code does work, it keeps repeating everything twice, 

继承代码:

推荐答案

这是因为您在Console.WriteLine调用中使用了test [0]。因此,如果该行具有abc?def,那么您将打印abc两次。将test [0]替换为part(当前项),然后打印abc后跟def。
That's because you are using test[0] in the Console.WriteLine call. So if the line has abc?def then you are printing abc twice. Replace test[0] with part (the current item) and it should then print abc followed by def.


这篇关于在progrom一切都得到了保证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆