摘要: ```Pythonfrom urllib.parse import quotedef convert(content): return quote("待转换的内容")if __name__ == "__main__": while True: content = input("请输入待转换的内容:") target = convert(con... 阅读全文
posted @ 2020-04-04 19:34 Nefarious 阅读(768) 评论(1) 推荐(1)
摘要: 1. 按 Ctrl+Shift+C 2. 按 Ctrl+Shift+P 3. 输入 "capture full size screenshot" 4. 按回车键 5. 选择保存路径,完成! 阅读全文
posted @ 2020-04-04 17:14 Nefarious 阅读(258) 评论(0) 推荐(0)
摘要: ```pythondef myreadlines(f, newline): buf = '' while True: while newline in buf: pos = buf.index(newline) yield buf[:pos] buf = buf[pos + len(newline):] ... 阅读全文
posted @ 2020-04-03 19:40 Nefarious 阅读(369) 评论(0) 推荐(0)
摘要: ```pythondef convert(content): return content.encode("UTF-8").decode("Unicode_Escape")if __name__ == "__main__": while True: content = input("请输入 Unicode 代码:") target = con... 阅读全文
posted @ 2020-04-03 19:25 Nefarious 阅读(225) 评论(0) 推荐(0)
摘要: 一、安装 Pyinstaller 1、安装 pywin32 使用 pip 安装: 2、安装 Pyinstaller 使用 pip 安装: 二、使用 Pyinstaller 打开cmd窗口,把路径切换到文件所在路径,输入以下内容(最后的是文件名): 输入参数的含义 |参数|说明| | | | | h, 阅读全文
posted @ 2020-04-02 17:25 Nefarious 阅读(307) 评论(0) 推荐(0)
摘要: 在 Jupyter Notebook 上的测试结果: map() & filter() 把时间都浪费在了转为列表的过程 阅读全文
posted @ 2020-04-02 09:51 Nefarious 阅读(180) 评论(0) 推荐(0)
摘要: 比如禁用 os 模块: 阅读全文
posted @ 2020-04-01 22:52 Nefarious 阅读(1104) 评论(0) 推荐(0)
摘要: 第一种方法 在 unicode 码中,汉字的范围是 (0x4E00, 9FBF) import random def Unicode(): val = random.randint(0x4e00, 0x9fbf) return chr(val) 这个方法比较简单,但是有个小问题,unicode 码中 阅读全文
posted @ 2020-04-01 22:49 Nefarious 阅读(854) 评论(0) 推荐(0)
摘要: ```Microsoft Windows [版本 10.0.18363.657] (c) 2019 Microsoft Corporation。保留所有权利。 C:\Users\Angel>python Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32 Typ 阅读全文
posted @ 2020-04-01 22:47 Nefarious 阅读(338) 评论(0) 推荐(0)
摘要: 把光标移动到文字前面就搞定了: 阅读全文
posted @ 2020-04-01 22:45 Nefarious 阅读(458) 评论(0) 推荐(0)