企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` import turtle b = (-42.42) a= abs(b) print(a) ``` ``` from turtle import * color('blue', 'yellow') begin_fill() while True: forward(100) lt(100) print(abs(pos())) if abs(pos()) < 1: break end_fill() #done() ``` ``` print(3.1166837572216805e-13< 1) ``` ``` i = 1 while True: i += 1 print(i) if i == 10: break print(i) ``` ``` from turtle import * title('正方形') #标题 color('blue', 'yellow') a = textinput('旋转角度','请输入旋转角度') begin_fill() while True: forward(100) lt(int(a)) print(abs(pos())) if abs(pos()) < 1: break end_fill() #done() exitonclick() ``` ``` from turtle import * title('多边形') #标题 color('blue', 'yellow') a = textinput('旋转角度','请输入旋转角度') begin_fill() title('骆天瑞旋转'+a+'多边形') #标题 while True: forward(100) lt(int(a)) print(abs(pos())) if abs(pos()) < 1: break end_fill() #done() exitonclick() ``` ``` a = '90' b = '旋转'+a+'多边形' #标题 print(b) ```