
Lv.1
只是喜欢Python而已……徒弟:程序侯
签名:只是喜欢Python而已…… 徒弟:程序侯
在 【代码岛3.0】怎么用 onTick 做计时器 中回复
let timer = 0
setInterval(
()=>{
timer++
world.say(timer)
}
)2020-06-05T15:13:01 点赞:0
在 一行代码判断是否为质数 中回复
又nm写错了
def isPrime(num): return not __import__("functools").reduce(__import__("operator").or_,[num % i == 0 for i in range(2,int(__import__("math").sqrt(num))+1)])2020-06-05T17:38:14 点赞:0
在 【Python作品分享】摩斯密码【作品秀】 中回复
code=['.-','-..','-.-.','-..','.''..-.','--.','....','..','.---','-.-','.-..','--','-.','---','.--.','--.-','.-.','...','-','..--','...-','.--','-..-','-.--','--..']
message=input("请输入英文:")
output=message.lower()
for index,letter in enumerate(list("abcdefghijklnmopqrstuvwxyz")):
output = output.replace(letter,code[index])
2020-06-06T14:16:20 点赞:1
在 【Python作品分享】电脑卡顿器 中回复
呵呵,来看爷的
a:float = 10.0
while True:
for i in range(round(a)):
a += i + 10000000000000.999999999
print(a)2020-06-14T08:32:44 点赞:0