关于作业

姓名加颜表情都会重名 发表于2020年04月09日
我根据自己思路写了第一周的,但是跑出出来。求教!! <img src="https://edu-image.nosdn.127.net/3095466BA4E548C0FC103EE63D83EEDC.jpg" style="max-width : 100% ;" >
1 回复

    1楼

  • guchao2000 发表于2020年04月09日
    0 | 2 | 举报
    <p>if word[-1]==0<br ></p>
    guchao2000 发表于2020年04月09日
    • 这样子也输不出来,而且要写word&gt;0时写if word[-1,6]&gt;0会直接报错
      姓名加颜表情都会重名 发表于2020年04月10日
      0 | 举报
    • guchao2000 2020年04月11日
      0 | 举报
      <p>try:</p><p>&nbsp; &nbsp; a=eval(input(&quot;请输入整数:&quot;))</p><p>&nbsp; &nbsp; if isinstance(a,int):</p><p>&nbsp; &nbsp; &nbsp; &nbsp; print(&quot;Hello World&quot;)</p><p>&nbsp; &nbsp; else:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; print (&quot;Wrong format&quot;)</p><p>except:</p><p>&nbsp; &nbsp; print(&quot;Wrong format&quot;)</p><p><br ></p>
      guchao2000 发表于2020年04月11日
      0 | 举报
    添加评论