# 报错:TypeError: can only concatenate str (not "int") to str # 原因:input接收用户的输入得到的是字符串,需要转换为数字类型(int或float)才能进行运算 radius = int(input('请输入圆的半径:'))