我有一个 python 脚本,我想在 code.org 上使用 HTML 显示它,但我不知道我可以使用哪些命令或方法来显示我想要显示的内容。这是我想在其中运行的 HTML 和 python 脚本的示例。(为发布而缩短的python代码)
import turtle as fab
import pandas as pd
platform = [0.00151,0.00318,0.00436,0.00551,0.00563,0.00989,0.01196]
fab.speed(10)
fab.pensize(2.5)
fab.penup()
fab.right(90)
fab.forward(300)
fab.left(90)
fab.pendown() #sets the turtle in place at the bottom of the screen
fab.color('#49514c') #black colour for amazon
fab.begin_fill()
fab.circle(platform[6]*30000) # draws the circle for amazon music unlimited
fab.end_fill()
fab.penup()
fab.forward(450)
fab.left(90)
fab.forward(400)
fab.right(90)
fab.pendown() #moving the pen to write the text
fab.color('#49514c')
fab.write('Amazon Music Unlimited!', move=False, align="left", font=("Comic Sans", 20, "normal"))
fab.penup()
fab.right(90)
fab.forward(50)
fab.left(90)
fab.pendown() #write amazon