首页  

python3 str 内置函数调用错误     所属分类 python 浏览量 480
>>> str(1.0)
'1.0'
>>> str = ''
>>> str(1.0)
Traceback (most recent call last):
  File "stdin", line 1, in module
TypeError: 'str' object is not callable

注意 变量名 不要与 python 关键字 和 内置函数 冲突

上一篇     下一篇
python3-003 条件和循环

python3-004 迭代器和生成器

python3-005 函数

python3-006 输入输出

python3-007 错误和异常

docker search 查看版本