利用pypinyin库,列出一段文字用小鹤打字需要敲击的按键。
This file contains 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
{ | |
"translatorID": "2de2b1a5-5725-494c-9224-5781cdf9b7ef", | |
"label": "Markdown ZotSelect", | |
"creator": "ciaranchen", | |
"target": "md", | |
"minVersion": "3.0", | |
"maxVersion": "", | |
"priority": 100, | |
"inRepository": true, | |
"translatorType": 2, |
This file contains 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 json, os | |
import requests | |
# https://lod-cloud.net/versions/2021-05-05/lod-data.json | |
json_path = './lod.json' | |
class JsonFilter(object): | |
def __init__(self, operator, threshold): | |
self.operator = operator |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
@0 | |
@1 | |
@2 | |
@3 |
This file contains 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
@0 | |
MOV ANY, DOWN | |
@1 | |
MOV RIGHT, DOWN | |
@2 | |
MOV ANY,LEFT | |
@3 |
This file contains 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 os | |
import hashlib | |
import pickle | |
import csv | |
import json | |
import logging | |
logging.basicConfig(level=logging.INFO, | |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', datefmt='%m-%d %H:%M:%S') | |
logger = logging.getLogger(__name__) |
This file contains 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 { Injectable } from '@angular/core'; | |
import {Md5} from "md5-typescript"; | |
const remove_timeout = 20000; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class DoubanService { | |
private apiRoot = 'https://api.douban.com/v2/book'; |