💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
``` 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) ```