大家好!我是幻化意识流,简称意识流。现在我们继续Python的学习。 我们打开IDLE。 我们对图片中的信息解释一下: Python3。7。9(tagsv3。7。9:13c94747c7,Aug172020,18:01:55)〔MSCv。190032bit(Intel)〕onwin32 Typehelp,copyright,creditsorlicense()formoreinformation。 32567839274(32。1) 111。65 Iamastudent。 Iamastudent。 Iamastudent。 SyntaxError:unexpectedindent语法错误:意外缩进 错误信息发生的原因是在I中间有个空格 Iamastudent。 Iamastudent。这样是不是看起来就很舒服了? 接下来,我们尝试用字符串和数值相加会发生什么: A1 Traceback(mostrecentcalllast): Filepyshell4,line1,in A1 TypeError:canonlyconcatenatestr(notint)tostr 追溯(最近的调用最后一次): 文件pyshell4,第1行,位于。 ‘A’1。 TypeError:只能将字符串(不是int)连接到字符串 如果我们把1转换成字符串就可以连接了,如下: Astr(1) A1 留下节课思考题:‘A’3会输出什么结果? seeyou。