round()函数是用来四舍五入的,下面这个问题是当round(4.5)时,打印出的是4,不是5 Built-in Functions — Python 3.7.12 documentationhttps://docs.python.org/3.7/library/functions.html#round 关于这个问题,请仔细阅读下面的文章,该文章做了非常全面的解释 https://www.runoob.com/w3cnote/python-round-func-note.htmlhttps://www.runoob.com/w3cnote/python-round-func-note.html