This file contains hidden or 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
| function main(splash, args) | |
| assert(splash:go(args.url, nil, { | |
| ["Cookie"] = args.cookie | |
| })) | |
| assert(splash:wait(1)) | |
| local element = splash:select("#accessCode") | |
| local ok, reason = element:send_text("glib") -- 输入提取码 | |
| if not ok then | |
| return reason |
This file contains hidden or 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
| """ | |
| Copyright (c) 2008-2021 synodriver <[email protected]> | |
| """ | |
| import numpy as np | |
| YIELD_STRESS = 400 # 屈服强度400Mpa | |
| def main(): | |
| data = np.loadtxt("data.csv", delimiter=",") # 读取应力应变曲线 第一列应力 第二列应变 |
This file contains hidden or 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
| #define PY_SSIZE_T_CLEAN | |
| #include <Python.h> | |
| static binaryfunc origin = NULL; | |
| static PyObject * | |
| new_func(PyObject *self, PyObject *other) | |
| { | |
| return PyLong_FromLong(1); |
This file contains hidden or 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 scrapy | |
| from scrapy.http import TextResponse | |
| import json | |
| class BiliSpider(scrapy.Spider): | |
| name = 'bili' | |
| allowed_domains = ['www.bilibili.com', "api.bilibili.com"] | |
| start_urls = [ |
NewerOlder