What is the difference between .. and …?

非 Y 不嫁゛ 提交于 2019-12-10 17:47:00

问题


The title is pretty much self-explanatory: When should one use the double-dots .. and when the triple-dots ...? Both are used to indicate a range.


回答1:


While ranges with double dots don't include the end bound, triple dots were used for inclusive ranges, i.e. (0...2) would contain 2 as well. This is now obsolete; use ..= for this purpose instead.



来源:https://stackoverflow.com/questions/53610214/what-is-the-difference-between-and

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!