Skip to content

Update Type_conversion.md #117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Article/PythonBasis/python2/Type_conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Python 中基本数据类型转换的方法有下面几个。

![](http://twowaterimage.oss-cn-beijing.aliyuncs.com/2019-08-31-064811.png)

但这并不是意味着浮点数不能转化为整数,而是小数形式的字符串不能强转为字符串
但这并不是意味着浮点数不能转化为整数,而是小数形式的字符串不能强转为整数

浮点数还是可以通过 `int()` 函数转换的。

Expand Down