摘要:A: f1_urls = ['a', 'b'] f2_urls = ['a', 'c'] python3 中获取存在于f1_urls 而不在f2_urls的项目 Q: f1_urls = ['a', 'b'] f2_urls = ['a', 'c'] # 将列表转换为集合 f1_set = set(
阅读全文
|
02 2023 档案
摘要:A: f1_urls = ['a', 'b'] f2_urls = ['a', 'c'] python3 中获取存在于f1_urls 而不在f2_urls的项目 Q: f1_urls = ['a', 'b'] f2_urls = ['a', 'c'] # 将列表转换为集合 f1_set = set(
阅读全文
摘要:问1: 如何用delphi调用ChatGPT接口 答1: uses IdHTTP, System.JSON; function GetChatGPTResponse(const Query: string): string; var IdHTTP: TIdHTTP; begin IdHTTP :=
阅读全文
摘要:library GlobalHooks; uses Windows; {$R *.res} const WH_KEYBOARD_LL = 13; WH_MOUSE_LL = 14; type TKeyboardHook = record Hook: HHOOK; Callback: function
阅读全文
摘要:问1: curl "https://api.m.afreecatv.com/station/video/a/view" ^ -H "authority: api.m.afreecatv.com" ^ -H "accept: application/json, text/plain, */*" ^ -
阅读全文
摘要://版本一:吃完一个就结束了。unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Control
阅读全文
摘要:uses System.Rtti, System.JSON; type TPerson = class public Name: string; Age: Integer; end; function ObjectToJSON(AObject: TObject): string; var Conte
阅读全文
摘要:uses Classes, SyncObjs; type TItem = class Data: Integer; end; TProducer = class(TThread) private FQueue: TThreadedQueue<TItem>; protected procedure E
阅读全文
摘要:uses SysUtils, Classes, DateUtils; const LineBreak = #13#10; type TSubtitle = record Start, Stop: TDateTime; Text: string; end; function ParseASS(cons
阅读全文
|