首页 > TAG信息列表 > vegetable

SwiftUI encode URL string All In One

SwiftUI encode URL string All In One Swift encode URL Chinese Unicode 黄瓜 => %E9%BB%84%E7%93%9C const str = `黄瓜`; encodeURI(str) // '%E9%BB%84%E7%93%9C' encodeURIComponent(str) // '%E9%BB%84%E7%93%9C' dead code ❌ // // Out

线程池/进程池

线程池 from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor def func(name): for i in range(1000): print(name, i) if __name__ == '__main__': with ThreadPoolExecutor(50) as f: # 创建一个有50个线程的线程池 for i in