说明:类型转换为 int。
int
def int(x=0.0): ''' 类型转换为 int :param x: 一个变量 :return: 转换为 int 后的值 '''
示例:
运行示例
print(int(3.1415926)) print(int('100'))