Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
| # coding: utf-8 | |
| import os | |
| import time | |
| from django.contrib.auth.hashers import make_password | |
| from django.conf import settings | |
| settings.configure() | |
| algo = 'pbkdf2_sha256' | |
| ps = 'SecLists/Passwords' | 
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 | 
| from bs4 import BeautifulSoup | |
| ''' | |
| format table with rowspan or colspan to [[]] two dimension lists with the same number td in tr. | |
| html表格格式化,有合并单元格的表格拆分出来,组成td元素个数一致的规整表格。 | |
| ''' | |
| def test_rowspan(): | |
| html_data_row = '''<table border="1"> | |
| <tr> <td>Montd</td> <td>Savings</td> <td>Savings for holiday!</td> </tr> | |
| <tr> <td>January</td> <td>$100</td> <td rowspan="2">$50</td> </tr> | |
| <tr> <td>February</td> <td>$80</td> </tr> </table>''' | 
| # -*- coding: utf-8 -*- | |
| # requirements: cryptography==1.4 | |
| from cryptography.hazmat.primitives import serialization, hashes | |
| from cryptography.hazmat.primitives.asymmetric import padding | |
| from cryptography.hazmat.backends import default_backend | |
| from cryptography.exceptions import InvalidSignature | |
| from collections import OrderedDict | |
| import json | |
| from base64 import b64decode, b64encode | 
| function tobignum(v, f, step) | |
| -- 自带tonumber遇到大整数溢出 | |
| -- v is a md5 hexdigest value, f is base format like binary or hex, use step to slice v | |
| if f == nil then | |
| f = 16 | |
| end | |
| if step == nil then | |
| step = 8 | |
| end | |
| local len = string.len(v) |