Tag:Dictionaries

  • An algorithm to improve the performance of English word spelling detection by 1000 times?

    Time:2021-7-27

    preface Xiao Ming wrote a spelling correction tool in Chinese and English last time, fooled by the product manager:https://github.com/houbb/word-checker。 I thought it could be done once and for all. Until yesterday, I found another open source project with nothing to do. The description is as follows: Spelling correction & Fuzzy search: 1 million times faster […]

  • Multi group data tableview setting, adding right group index, multi-layer data model setting and valueforkeypath

    Time:2021-7-23

    First look at the effect: The data model here has two layers: each group of cars is a layer model, and each line of car brands in each group is also a layer model. (1) Let’s create a wscars model first. stayWSCars.hMedium: #import <Foundation/Foundation.h> @interface WSCars : NSObject @property(nonatomic,copy) NSString *icon; @property(nonatomic,copy) NSString *name; +(WSCars […]

  • Learning dictionary transfer model for IOS development

    Time:2021-7-22

    There are not many difficulties about this knowledge point. The main thing to remember is the dictionary to model. The general steps of dictionary to model are as follows: (1) First, create the get and set methods that need data, for example: @property (nonatomic, copy) NSString *answer; @property (nonatomic, copy) NSString *title; @property (nonatomic, copy) […]

  • Extracting words from English textbooks and making new word lists

    Time:2021-7-13

    Extracting words from English textbooks and making new word lists The textbook is broken down into words Under VIM: Cut all text by non English characters :%s/\W/\r/g Delete duplicate words and sort them :sort u Delete the word section with numbers :g/\d/d Look up English dictionary to make word list Python import pandas as pd […]

  • Declaration, initialization and basic use of dictionary type

    Time:2021-7-13

    Dictionary definition Students with PHP foundation should know that PHP array includes index array and associative array. The index array in PHP corresponds to the array and slice type of go language, and the associative array in PHP corresponds to the dictionary type (map) of go language. The so-called dictionary is actually a collection of […]

  • Step by step Vue + element front end application development (20) — using component encapsulation to simplify interface code

    Time:2021-7-6

    The good point of Vue + element front-end application is that the interface is componentized. We can divide the interface content into different combinations according to the reuse guidelines. Each module can be a component or a combination of multiple components, and this process is very convenient. The purpose of component encapsulation is to develop […]

  • Dictionary of Objective-C

    Time:2021-6-29

    introduce Java has map, which can store data in the form of key value pairs. When taking values, you can get the corresponding values directly through the key, which is convenient and fast. In Objective-C language, dictionaries do such things. Like nsarray, a dictionary object can store different types of values. Dictionaries also have immutable […]

  • Set of Objective-C

    Time:2021-6-28

    introduce Java has map, which can store data in the form of key value pairs. When taking values, you can get the corresponding values directly through the key, which is convenient and fast. In Objective-C language, dictionaries do such things. Like nsarray, a dictionary object can store different types of values. Dictionaries also have immutable […]

  • 93.7% of programmers! Why does redis default to 16 databases?

    Time:2021-6-25

    background In practical projects, redis is often used for caching, distributed lock / message queuing, etc. However, after setting up and configuring the redis server, many friends should find out and have such questions. Why does redis set up 16 databases by default, The origin of 16 databases Redis is a dictionary structure storage server. […]

  • Python – KuWo music

    Time:2021-6-18

    Complete code import requests import json import os Process of foreign exchange deposit and withdrawal https://www.fx61.com/support def music_download(): KW = input (“please input music name:) #Request header headers = { “User-Agent”:”Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36 Edg/84.0.522.63″, “Cookie”:”_ga=GA1.2.1083049585.1590317697; _gid=GA1.2.2053211683.1598526974; _gat=1; Hm_lvt_cdb524f42f0ce19b169a8071123a4797=1597491567,1598094297,1598096480,1598526974; Hm_lpvt_cdb524f42f0ce19b169a8071123a4797=1598526974; kw_token=HYZQI4KPK3P”, “Referer”: “http://www.kuwo.cn/search/list?key=%E5%91%A8%E6%9D%B0%E4%BC%A6”, “csrf”: “HYZQI4KPK3P”, } #Parameter […]

  • Python No.15 dictionary

    Time:2021-6-16

    # !/ usr/bin/env python# -*- coding:utf-8 – *-# A uthor:Hugolinhjinfo = {stu1101 ‘:’adbc’,’stu1102 ‘:’adef’,’stu1103 ‘:’aghi’,} #’key ‘:’value’, key: value print (info) # the dictionary has no subscript, so the printing order will be disordered. Print (info [‘stu1101 ‘]) to view the value corresponding to the key, but! If there is no key, an error is […]

  • The most detailed Python batch dictionary brute force crack zip password

    Time:2021-6-13

    Tool cracking Two days ago, a wave of project cases came down on the Internet, and the results were all encrypted compressed packets. So I went to the Internet to find a tool to crack compressed packetsBecause the tool is too slow to crack, it takes a long time to compress a package. After decompressing […]