Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson3-1-1_DIY1

  • This project
    • Loading...
  • Sign in
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 b8025b60 authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent bc51f4ac
Show whitespace changes
Inline Side-by-side
Showing with 95 additions and 1 deletions
  • diy1.py
  • python3.7 copy.py
  • python3.7.py
diy1.py deleted 100644 → 0
View file @ bc51f4ac
# 利用write()帮助悟空给诺依回信吧~
This diff is collapsed. Click to expand it.
python3.7 copy.py 0 → 100644
View file @ b8025b60
This diff is collapsed. Click to expand it.
python3.7.py 0 → 100644
View file @ b8025b60
#输出
#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()
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment