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
51aae69522cdfbd3b94b0727443e0488e7d1c9c2
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