Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Coding

HaoTian 117503445

👨‍💻
Coding
View GitHub Profile
@117503445
117503445 / main.md
Created Apr 21, 2020
Python selenium 控制已打开的 Chrome
View main.md
  1. 使用 chrome.exe --remote-debugging-port=9222 打开浏览器

  2. Python 中添加 chrome_options.add_experimental_option("debuggerAddress", "127.0.0.1:9222")

View strlist.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct
{
unsigned int size;
//子字符串数量
char **list;
//用字符串数组来存放字符串列表
@117503445
117503445 / utf8.c
Created May 31, 2020
C : read and write UTF-8 file
View utf8.c
/* fgetwc example */
#include <stdio.h>
#include <wchar.h>
int main()
{
FILE *fin;
FILE *fout;
wint_t wc;
fin = fopen("in.txt", "r");
fout = fopen("out.txt", "w");
View Huffman.c
// C program for Huffman Coding
#include <stdio.h>
#include <stdlib.h>
// This constant can be avoided by explicitly
// calculating height of Huffman Tree
#define MAX_TREE_HT 100
// A Huffman tree node
struct MinHeapNode {
View LaTeX Figure.tex
\begin{figure}[htbp]
\centering
\includegraphics[width=13cm]{figures/1-1.png}
\caption{image caption}
\label{image label}
\end{figure}
@117503445
117503445 / wjx.py
Created Feb 26, 2021
Python 问卷星模拟登陆获取 SojumpSurvey
View wjx.py
import requests
from lxml import etree
def get_SojumpSurvey(username: str, password: str) -> str:
'''
模拟问卷星登录,获得 SojumpSurvey
多次调用需间隔 40 s
'''
SERVERID = requests.get(