|
jastyg
中级用户
  
积分 219
发帖 82
注册 2005-10-29
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
斑竹确实是高,不是我等可以比拟的~~
我原来是采用对当前时间和用户输入时间去0处理,但斑竹的更加精妙只对用户输入进行单方面的处理,不得不令人佩服。
re: namejm
关于输入标签符号,这个我知道,不过我贴出来之后没发现有代码被网页煽改。
到是希望你们能给出些好的日期和时间的格式检测方法。谢谢
Last edited by jastyg on 2006-6-9 at 21:35 ]
The moderator is really excellent, far beyond our comparison~~
I originally used to process the current time and the user input time by removing the 0, but the moderator's method is more ingenious, only processing the user input unilaterally, which is really admirable.
re: namejm
Regarding the input of tag symbols, I know that, but after I posted it, I didn't find that the code was tampered with by the web page.
I really hope you can give some good methods for detecting date and time formats. Thanks
Last edited by jastyg on 2006-6-9 at 21:35 ]
|

www.jastyg.com
www.efengchi.com |
|
2006-6-9 21:13 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
Re jastyg:
兄在程序中的注释使用了不正确的方法,以致妨害了批处理的正常执行,建议兄在更新代码中先做好测试。
正如 namejm 兄所说,过多的注释不但无益,而且有害,而且优秀的编写风格会比注释更有效地让人理解代码。我的建议是,仅注释以标签起始的模块和比较复杂的语句。
至于日期和时间的格式检测方法,请使用 if /? 查阅其中的比较运算符,相信你会有所收获。
Re jastyg:
Brother's comments in the program used an incorrect method, which hindered the normal execution of the batch processing. It is suggested that brother do a good job in testing before updating the code.
As brother namejm said, too many comments are not only useless but also harmful, and excellent writing style will make people understand the code more effectively than comments. My suggestion is to only comment on the modules starting with tags and more complex statements.
For the format detection method of date and time, please use if /? to check the comparison operators in it, I believe you will gain something.
|

※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2006-6-10 19:09 |
|
|
jastyg
中级用户
  
积分 219
发帖 82
注册 2005-10-29
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
用原始的方法做了日期和时间的检验~~~
The date and time have been verified using the original method~~~
|

www.jastyg.com
www.efengchi.com |
|
2006-6-12 14:43 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
Re jastyg:
很遗憾!看来兄并没有听取我和namejm兄的建议。代码中的冗余注释仍在,08/09判断仍使用旧的算法,时间的检测仍使用了for。如果兄能改善这些状况,我会在对代码做一个比较详细的测试后,再给出的自己的建议。
Re jastyg:
It's a pity! It seems that you didn't take the suggestions from me and namejm. The redundant comments in the code are still there, the 08/09 judgment still uses the old algorithm, and the time detection still uses for. If you can improve these situations, I will give my own suggestions after making a more detailed test on the code.
|

※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2006-6-12 19:40 |
|
|
lsbsyb
新手上路

积分 17
发帖 10
注册 2007-3-12
状态 离线
|
|
2007-3-14 08:40 |
|