This website requires JavaScript.
Explore
Help
Register
Sign In
chenxuan
/
python
Watch
1
Star
0
Fork
0
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
2d3c18b213019639f55cab0604423387793b3f30
python
/
pythonProject
/
数据类型
/
数据类型转换.py
T
8 lines
90 B
Python
Raw
Normal View
History
Unescape
Escape
no message
2023-12-24 16:11:46 +08:00
x
=
10
y
=
3
z
=
x
/
y
print
(
type
(
x
/
y
))
#隐式转换
no message
2025-10-15 16:55:18 +08:00
print
(
type
(
int
(
z
)))
#显式转换
print
(
z
)
Reference in New Issue
Copy Permalink