全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Type conversion?

Definition 15.4 Primary & Middle School Computer Science · 第 15 章 — Variables and Input

A type conversion makes, from a value, the value of another type that stands for the same thing: int("12") gives the whole number 12, float("2.5") the decimal number 2.5, and str(12) the text "12".

在原文中阅读 →