中文乱码的根源在于 windows 基于一些历史原因无法全面支持 utf-8 编码格式,并且也无法通过有效手段令其全面支持。
- 安装
| var CryptoJS = require('crypto-js') | |
| var request = require('request-promise') | |
| /* | |
| * npm install crypto-js request-promise request | |
| * node wx_t1t_hack.js | |
| */ | |
| // export function testEncription(msg, fullKey) { | |
| // var fullKey = fullKey.slice(0, 16) |
| function number_format (number, decimals, dec_point, thousands_sep) { | |
| // http://kevin.vanzonneveld.net | |
| // + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) | |
| // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
| // + bugfix by: Michael White (http://getsprink.com) | |
| // + bugfix by: Benjamin Lupton | |
| // + bugfix by: Allan Jensen (http://www.winternet.no) | |
| // + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) | |
| // + bugfix by: Howard Yeend | |
| // + revised by: Luke Smith (http://lucassmith.name) |
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| import sys | |
| import logging | |
| import datetime | |
| import requests | |
| import BeautifulSoup | |
| from requests.adapters import HTTPAdapter |
| background: linear-gradient(207deg, #10ec6f, #172de1); | |
| background-size: 400% 400%; | |
| -webkit-animation: test 6s ease infinite; | |
| -moz-animation: test 6s ease infinite; | |
| -o-animation: test 6s ease infinite; | |
| animation: test 6s ease infinite; | |
| @-webkit-keyframes test { | |
| 0%{background-position:58% 0%} | |
| 50%{background-position:43% 100%} | |
| 100%{background-position:58% 0%} |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |