python ..

https://stackoverflow.com/questions/43487811/what-is-python-dot-dot-notation-syntax

f = 1..__add__

但是写作是一样的:

f = 1.0.__truediv__

因为float文字可以写成三种形式:

normal_float = 1.0
short_float = 1.  # == 1.0
prefixed_float = .1  # == 0.1

猜你喜欢

转载自blog.csdn.net/u010098544/article/details/78958951