浪漫的Python

点击数:38

0.py

name = input ('心之所向的人:')
print ('{},我的心之所向'.format(name))
import time
time.sleep(1)
print ('{},The direction of my heart.'.format(name))
import time
time.sleep(1)
print('\n'.join([''.join([(' LoveYou '[(x-y)%8]if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else' ')for x in range(-30,30)])for y in range(15,-15,-1)]))

1.py

name = input ('当你遇到任何困难时,请记住:')
print ('{},我永远支持你'.format(name))
import time
time.sleep(1)
print ('I always support you and cheer for you.')
time.sleep(1)
print('\n'.join([''.join([(' come on '[(x-y)%8]if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else' ')for x in range(-30,30)])for y in range(15,-15,-1)]))

2.py

import turtle
import time
time.sleep(1)
def liujia():
    for i in range (200):
        turtle.right(1)
        turtle.forward(1)
turtle.color('red','pink')
turtle.pensize(2)
turtle.speed(10)
turtle.goto(0,0)
turtle.begin_fill()
turtle.left(140)
turtle.forward(111.65)
liujia()
turtle.left(120)
liujia()
turtle.forward(111.65)
turtle.end_fill()
import time
time.sleep(3)
turtle.pu()
turtle.goto(100,-10)
turtle.write('谈馨颖 LOVE',font=("华文彩云",30))
import time
time.sleep(3)
print('\n'.join([''.join([(' LoveYou '[(x-y)%8]if((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3<=0 else' ')for x in range(-30,30)])for y in range(15,-15,-1)]))

 

点赞

发表评论

昵称和uid可以选填一个,填邮箱必填(留言回复后将会发邮件给你)
tips:输入uid可以快速获得你的昵称和头像