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
#include "stdio.h" | |
#include "math.h" | |
#define N 30 | |
struct student | |
{ | |
long int num; | |
char name[10]; | |
char sex[3]; | |
int Chinese,Math,English,total,average; | |
}stu[N]={{4001,"lks","m",100,100,100},{4002,"lyt","w",99,63,89},{4003,"asd","w",60,70,80},{4004,"fgh","m",41,100,98}, |
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 requests | |
from re import compile | |
from tqdm import tqdm | |
from bs4 import BeautifulSoup | |
root_url = 'http://www.biquzi.com' | |
def get_urls_from_main_page(url) -> list: |
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
title = ''.join(response.xpath("//div[@class='post_content_main']/h1/text()").extract()) | |
text = '\n'.join(response.xpath("//div[@class='post_text']/p/text()").extract()) |
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
知识点1: 前言部分词汇 regress –manly | |
regress(progress:进度) | |
ingress 进入 | |
improvise 即兴创作 | |
benefactor(manufacturer:制造商) | |
shelter 避难所,保护 | |
shield(shell:壳) | |
fetter 束缚 | |
disburse(apart:除) |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jul 19 00:07:09 2017 | |
@author: zjxua | |
""" | |
import math | |
import numpy as np | |
from functools import reduce | |
from pprint import pprint |
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
# -*- coding: utf-8 -*- | |
# @Author: jason-xuan | |
# @Date: 2017-08-07 09:33:12 | |
# @Last Modified by: jason-xuan | |
# @Last Modified time: 2017-08-07 11:25:45 | |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
from tqdm import tqdm |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
using Test, Distributions, CSV, GLM, Lasso, DataFrames | |
using Random, Distributed, LinearAlgebra, SparseArrays, SharedArrays | |
include("./test/testutils.jl") | |
include("./test/addworkers.jl") | |
import HurdleDMR; @everywhere using HurdleDMR | |
include("./test/testdata.jl") |
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
using Test, Distributions, CSV, GLM, Lasso, DataFrames | |
using Random, Distributed, LinearAlgebra, SparseArrays, SharedArrays | |
include("./test/testutils.jl") | |
include("./test/addworkers.jl") | |
import HurdleDMR; @everywhere using HurdleDMR | |
include("./test/testdata.jl") |
OlderNewer