This file contains hidden or 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
../python.exe test/test_http_cookies.py | |
test_basic (__main__.CookieTests) ... FAIL | |
test_comment_quoting (__main__.CookieTests) ... ok | |
test_extended_encode (__main__.CookieTests) ... ok | |
test_extra_spaces (__main__.CookieTests) ... FAIL | |
test_illegal_chars (__main__.CookieTests) ... FAIL | |
test_invalid_cookies (__main__.CookieTests) ... FAIL | |
test_load (__main__.CookieTests) ... ok | |
test_pickle (__main__.CookieTests) ... ok | |
test_quoted_meta (__main__.CookieTests) ... FAIL |
This file contains hidden or 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
../python.exe test/test_http_cookies.py | |
test_basic (__main__.CookieTests) ... FAIL | |
test_comment_quoting (__main__.CookieTests) ... ok | |
test_extended_encode (__main__.CookieTests) ... ok | |
test_extra_spaces (__main__.CookieTests) ... ok | |
test_illegal_chars (__main__.CookieTests) ... FAIL | |
test_invalid_cookies (__main__.CookieTests) ... FAIL | |
test_load (__main__.CookieTests) ... ok | |
test_pickle (__main__.CookieTests) ... ok | |
test_quoted_meta (__main__.CookieTests) ... ok |
This file contains hidden or 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
// 专门给喷子,带狗发送的消息通知, 20181206 针对大忽悠事件 | |
func (s *Service) NotifyTroll(c context.Context, mid int64) (err error) { | |
var ok bool | |
if ok, err = s.dao.ExsistsDelMid(c, mid); err != nil || ok { | |
return | |
} | |
title := "评论处理通知" | |
msg := fmt.Sprintf("您好,根据#{关于规范“主播吴织亚切大忽悠事件”相关言论、信息发布的公告}{\"%s\"},您的相关评论已被清理。对于这一事件的讨论请移步公告中告知的区域进行讨论。", s.conf.Reply.Link) | |
if err = s.dao.SendReplyDelMsg(c, mid, title, msg, time.Now()); err != nil { | |
return |
This file contains hidden or 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
import base64 | |
import json | |
import random | |
import time | |
import zlib | |
def meituan_encrypt(string): | |
""" 美团的加密算法 """ | |
if isinstance(string, str): |
This file contains hidden or 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
if __name__ == '__main__': | |
print('Hello World!') |