Python integer division yields float

前端 未结 5 1443
离开以前
离开以前 2020-11-22 03:01
Python 3.1 (r31:73574, Jun 26 2009, 20:21:35) [MSC v.1500 32 bit (Intel)] on win32
Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.
>         


        
5条回答
  •  抹茶落季
    2020-11-22 03:45

    Take a look at PEP-238: Changing the Division Operator

    The // operator will be available to request floor division unambiguously.

提交回复
热议问题