This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! -*- coding: utf-8 -*- | |
def repack(old_list): | |
new_list = [] | |
first = 0 | |
last = len(old_list) - 1 | |
while len(new_list) < len(old_list): | |
last_el = old_list[last] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! -*- coding: utf-8 -*- | |
def factor(number): | |
""" | |
Используем разложение на простые множители | |
""" | |
factors = [1] | |
start = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import string | |
import webbrowser | |
import re | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
# pip install requests | |
# pip install beautifulsoup4 |
NewerOlder