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
35e2d70fe2a868b83b2f3e08f78fda1370e31deb
python
/
pythonProject
/
数据类型
/
数据类型转换.py
T
6 lines
88 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