x=11strxy=typeXprinty
NameError: name 'X' is not defined
There is a typo in the code as the variable x is lowercase but in the second line it is written as uppercase X.
The corrected code is:
x = 11 str(x) y = type(x) print(y)
Output: <class 'int'>
原文地址: https://www.cveoy.top/t/topic/bbDB 著作权归作者所有。请勿转载和采集!