Best of ru python
前往频道在 Telegram
Канал с мемами и эпичными фразами из жизни @ru_python сообщества. Присоединяйтесь и да прибудет с вами Гвидо!
显示更多838
订阅者
无数据24 小时
无数据7 天
无数据30 天
帖子存档
еще хочу заметить что у меня майк тайсон на аватарках, а это значит что если я кого то по айпи(номеру телефона) вычислю, то могу прописать фирменную двоечку
#!/usr/bin/env python3
import os
G = '''"$@B%8&WM#*oahkbdpqwmZO0QLCJUYXzcvunxrjft/\|()1{}[]?-_+~<>i!lI;:,"^`'. "'''
if hasattr(os, 'get_terminal_size'):
tsize = os.get_terminal_size
else:
tsize = lambda:(int(os.getenv('COLUMNS', 80)), int(os.getenv('LINES', 24)))
def m(w, h, z):
out = ''
xz, yz = z, z * 6 / 5
for y in range(h):
yy = yz * (y / h - .5) - 1
for x in range(w):
xx = xz * (x / w - .5)
z, c = 0j, complex(xx, yy)
for r in G:
z = z**2 + c
if abs(z.real) > 2 or abs(z.imag) > 2:
out += r
break
else:
out += ' '
return out
if __name__ == '__main__':
z = 1
while 1:
w, h = tsize()
print(m(w, h-1, z))
z *= 0.97Used the normal computer, works fine but i can't keep the terminal open for long durations, but as mobiles are cheap and can stay awake for longer Durations, i am trying to figure out a way run code on them.. Any other app to run pip command and the python code?
🖐 A problem I am facing with python code is I am running a Twitter 🐦 tweepy based code on pydroid, after few minute, the app resets itself and I am left with empty app 📲, the problem is with app Or the phone Or my code? #help?
