- Нажать ПКМ по странице, на которой будете запускать скрипт.
- Выбрать "Просмотреть код" (Inspect Element) в самом низу.
- Открыть вкладку Console.
- Скопировать скрипт и вставить в консоль.
- Нажать Enter.
| import xlrd | |
| from openpyxl.workbook import Workbook | |
| from openpyxl.reader.excel import load_workbook, InvalidFileException | |
| def open_xls_as_xlsx(filename): | |
| # first open using xlrd | |
| book = xlrd.open_workbook(filename) | |
| index = 0 | |
| nrows, ncols = 0, 0 | |
| while nrows * ncols == 0: |
| from shutil import make_archive | |
| from wsgiref.util import FileWrapper | |
| def download(request, file_name=""): | |
| """ | |
| A django view to zip files in directory and send it as downloadable response to the browser. | |
| Args: | |
| @request: Django request object | |
| @file_name: Name of the directory to be zipped | |
| Returns: | |
| A downloadable Http response |
C:\Python34\Lib\site-packages\PyInstaller\hooks\hook-Cryptodome.pyC:\Python34\Lib\site-packages, and copy (sic!) Crypto module, and name it Cryptodome.C:\Python34\Lib\site-packages\Crypto\Util\_raw_api.py, and rename imports from Crypto to Cryptodome. It should look like this:from Cryptodome.Util.py3compat import byte_string
from Cryptodome.Util._file_system import pycryptodome_filename| {"lastUpload":"2020-12-29T16:08:14.538Z","extensionVersion":"v3.4.3"} |