Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-2_DIY1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
802c2ff9
authored
Jul 03, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a15989ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
113 additions
and
0 deletions
python3.7 copy.py
python3.7.py
python3.7 copy.py
0 → 100644
View file @
802c2ff9
import
turtle
turtle
.
pendown
()
turtle
.
bgcolor
(
"pink"
)
turtle
.
write
(
"卢本伟发来贺卡:
\n
得得得得得
\n
得得得得得得得得得得得得"
,
font
=
(
"Times"
,
15
,
"normal"
))
turtle
.
pencolor
(
"red"
)
turtle
.
pensize
(
10
)
turtle
.
penup
()
turtle
.
left
(
180
)
turtle
.
forward
(
100
)
turtle
.
left
(
180
)
turtle
.
pendown
()
turtle
.
left
(
45
)
turtle
.
forward
(
100
)
turtle
.
circle
(
50
,
180
)
turtle
.
right
(
90
)
turtle
.
circle
(
50
,
180
)
turtle
.
forward
(
100
)
turtle
.
done
()
\ No newline at end of file
python3.7.py
0 → 100644
View file @
802c2ff9
#输出
#print("hello,world!")
#输入+输出
#input_food=input("请输入")
#print("是"+input_food+str(type(input_food)))
#连续赋值相同的值
#a=b=c=1
#print(a)
#print(b)
#print(c)
#连续赋值不同的值
#a,b,c=1,2,3
#print(a)
#print(b)
#print(c)
#注释方法
#哈哈哈哈哈哈
"""
哈哈哈
哈哈哈
"""
#加运算
#x=10
#y=20
#print("x+y="+ x+y)
#减运算
#x=10
#y=20
#print("x-y="+ x-y)
#乘运算
#x=10
#y=20
#print("x*y="+ x*y)
#除运算
#x=10
#y=20
#print("x/y="+ x/y)
#乘方运算
#x=10
#y=20
#print("x**y="+ x**y)
#取整除运算
#x=10
#y=20
#print("x//y="+ x//y)
#取余运算
#x=10
#y=20
#print("x%y="+ x%y)
#询问三角形的底,高,求三角形面积。
#a=input("三角形的底为:")
#h=input("三角形的高为:")
#print("三角形的面积为",float(a)*float(h)/2)
#询问半径,计算圆形周长
#pai=3.14
#r=input("圆的半径为:")
#print("圆的周长为",float(r)*pai*2)
#询问半径,计算圆形周长
#pai=3.14
#r=input("圆的半径为:")
#print("圆的面积为",float(r)**2*pai)
#询问底,高,求梯形的面积
#a=input("梯形的上底为:")
#b=input("梯形的下底为:")
#h=input("梯形的高为:")
#print("梯形的面积为:",(float(a)+float(b))*float(h)/2)
#太阳花
#import turtle
#turtle.pendown()
#turtle.speed(15)
#turtle.begin_fill()
#for i in range(36):
# turtle.forward(200)
# turtle.left(170)
#turtle.fillcolor("red")
#turtle.hideturtle()
#turtle.end_fill()
#turtle.done()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment