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

bellcode / lesson12-2

  • 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 6b658b11 authored 3 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 08cc2487 c183201l970p219a10057/wx885735
Hide whitespace changes
Inline Side-by-side
Showing with 67 additions and 5 deletions
  • diy.2py
  • diy.py
  • diy3.py
  • ewatgwrjkhgq3;t.py
  • sdcfaeirfer.py
  • trgi.py
diy.2py
View file @ 6b658b11
with open(r)
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy.py
View file @ 6b658b11
# 写入同学们的捐赠明细:'小兰:12本'、'小丽:11本'、'李文:9本'、'张伟:16本'
with open(r'c:\Users\bellcode\Desktop\myfile2.txt','r',encoding='utf-8') as file:
a=file.read()
print(a)
\ No newline at end of file
for i in range(2000,3201):
if i%7==0 and i%5!=0:
print(i)
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy3.py 0 → 100644
View file @ 6b658b11
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.fillcolor('green')
pen.begin_fill()
pen.forward(300)
pen.left(120)
pen.forward(450)
pen.left(120)
pen.forward(450)
pen.left(120)
pen.forward(150)
pen.left(120)
pen.forward(300)
pen.right(120)
pen.forward(450)
pen.right(120)
pen.forward(450)
pen.right(120)
pen.forward(150)
pen.end_fill()
pen.fillcolor('red')
pen.begin_fill()
for i in range(6):
pen.forward(150)
pen.right(60)
pen.end_fill()
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
ewatgwrjkhgq3;t.py 0 → 100644
View file @ 6b658b11
import turtle
pen=turtle.Pen()
pen.hideturtle()
pen.fillcolor('green')
pen.begin_fill()
pen.begin_forword(300)
pen.left(120)
pen.forward(450)
pen.left(120)
pen.forward(450)
pen.left(120)
pen.forward(150)
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
sdcfaeirfer.py 0 → 100644
View file @ 6b658b11
import turtle
pen=turtle.Pen()
pen.speed(10)
pen.left(30)
for i in range(60):
pen.pendown()
pen.forward(150)
pen.left(180)
pen.penup()
pen.forward(150)
pen.right(178)
pen.pendown()
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
trgi.py 0 → 100644
View file @ 6b658b11
with open(r'c:\Users\bellcode\Desktop\天又热感叹人生文件讨厌的人kyfj.txt','r',encoding='utf-8') as file:
a=file.read()
print(a)
\ No newline at end of file
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