
Lv.1
sdgsdgdgdfgdfgdfgdfgdfgdfg
签名:懒得告诉你。
在 【来求圆周率】大家一起来 中回复
3.喵9793238462喵338327950288419716939937510582097494459230781喵062862089986280348253421170679
2018-06-24T16:06:11 点赞:0
在 【作品TOPTOP】作品自荐通道 中回复
2018-06-25T14:35:21 点赞:0
在 [萌新院]Python难题 中回复
import turtle
import random
t = turtle.Pen()
while True:
#注意啦,注意啦,如果你在这里写t.forward(100),那么呈现的效果会是一个颜色的条然后另一个颜色的条,所以说你得这样:
#创建一个for i in range(100):
# t.forward(1)
# r = random.random()
# g = random.random()
# b = random.random()
# t.color(r,g,b)
2018-08-02T17:41:52 点赞:0
在 [萌新院]Python难题 中回复
import turtle
import random
import turtle,random,time
t = turtle.Pen()
t.speed(0)
#注意啦,注意啦,如果你在这里写t.forward(100),那么呈现的效果会是一个颜色的条然后另一个颜色的条,所以说你得这样:
for i in range(100):
t.forward(1)
colors = ['gray','red','blue','gold','yellow','cyan','purple']
t.color(colors[random.randint(0,6)])
2018-08-02T17:54:07 点赞:0
在 忍者训练之喵币 作者小翟 中回复
<a href="https://ide.codemao.cn/we/2524722">https://ide.codemao.cn/we/2524722</a>
2018-08-10T15:36:53 点赞:0
在 忍者训练之喵币 作者小翟 中回复
<a href='https://ide.codemao.cn/we/2524722' style='position:relative; top:100; left:100; font-size:45'>https://ide.codemao.cn/we/2524722</a>
2018-08-10T15:40:00 点赞:0
在 python大佬们看过来,帮我看看这段代码哪错了 中回复
from time import time
t=time()
with open(‘B:/test.txt’,’r’)as infile:
infile.seek(3)#skip bdm
content=infile.read()
content=content.encode('utf-8')
outbuf=open(‘B:/hello.txt','w')
for c in content:
outbuf.write(chr(ord(c)))
with open('B:/test2.txt’,’wb')as outfile:
outfile.write(outbuf.gotvalue())
print(t)
2018-08-12T08:46:50 点赞:0