用户:
断月q查看:0 回复:3 评论:0 创建时间:2022-05-12T12:15:09
没错,第三期来了 好的,马上开始教程 imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头" 本期讲的是: 好的,让我们开始吧首先还是喵循环:whileTrue: 然后询问左面的数:left=float(input(“左面的数”)) 然后是运算:a=input(“运算符号”) 最后是右面的数:right=float(input(“右面的数”)) 最后是运算加法部分:if(a==“+”): result=(left+right) print(result) 一定要自己缩进 imgsrc="https://static.codemao.cn/emotion/thunder_monkey/%E7%AC%91%E8%B6%B4240.gif"alt="emotion_雷电猴_笑趴" 作业:自己添加减法,乘法,除法 imgsrc="https://static.codemao.cn/emotion/thunder_monkey/%E9%9B%B7%E7%94%B5%E7%8C%B4z.gif"alt="emotion_雷电猴_嗯嗯"