Commit 4b7b9e28 by BellCodeEditor

save project

parent a6306ef6
Showing with 26 additions and 4 deletions
with open(r'C:\Users\bellcode\Desktop\myfile2.txt','a',encoding='utf-8')as file:
file.write('李飞:18\n')
\ No newline at end of file
with open(r'C:\Users\bellcode\Desktop\myfile2.txt','r',encoding='utf-8') as file:
for i in file:
if '小鬼:24' in i:
print('数据在txt文件中')
\ No newline at end of file
for i in range(1,10):
for j in range(1,i+1):
print(str(j)+"*"+str(i)+"="+str(j*i),end="\t")
print(str(j)+"×"+str(i)+"="+str(j*i)+"|",end="\t")
print()
\ No newline at end of file
import turtle as t
a=(200**2*2)**0.5
t.left(90)
t.circle(100,225)
t.fd(a)
t.up()
t.goto(0,0)
t.fd(200)
t.down()
t.left(90)
t.circle(100,225)
t.fd(a)
t.done()
with open(r'C:\Users\bellcode\Desktop\myfile.txt','r',encoding='utf-8') as file1:
for i in file1:
if '小鬼:24' in i:
print('数据在txt文件中')
\ No newline at end of file
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