怪奇物语

怪奇物语

首页 新随笔 联系 管理
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页

2023年7月9日 #

摘要: # `cnblog_upload/cnblog_upload.command` ```sh #! /bin/bash # source /Users/song/Code/script_python/pycnblog-master/venv/bin/activate echo -n '请拖入一个md文 阅读全文
posted @ 2023-07-09 21:38 超级无敌美少男战士 阅读(66) 评论(0) 推荐(0)

2023年7月8日 #

摘要: # `6.python高级知识-闭包装饰器/demo02_闭包.py` ```py # -*- coding:utf-8 -*- # 第一种方法 # 每次都更具汇率和钱都写一遍 # 这种方法是太烦了 print("第一种方法") rate_usa = 0.7 money = 100 # print( 阅读全文
posted @ 2023-07-08 16:16 超级无敌美少男战士 阅读(16) 评论(0) 推荐(0)

摘要: # `5.python高级一/demo03_python环境变量路径.py` ```py from loguru import logger import sys sys.path.append('/Users/toby/Downloads/PythonAdvanced/code/pythonAdv 阅读全文
posted @ 2023-07-08 16:16 超级无敌美少男战士 阅读(26) 评论(0) 推荐(0)

摘要: # sqlalchemy连接多个数据库_异步形式 ```py from fastapi import FastAPI from sqlalchemy import create_engine, Column, Integer, String from sqlalchemy.ext.asyncio i 阅读全文
posted @ 2023-07-08 08:28 超级无敌美少男战士 阅读(859) 评论(0) 推荐(0)

2023年7月2日 #

摘要: # `wechat_python/run.py` ```py from sqlalchemy import Column, Integer, String, create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.e 阅读全文
posted @ 2023-07-02 23:12 超级无敌美少男战士 阅读(91) 评论(0) 推荐(0)

摘要: # `F:\wechat_fiddler\1.py` ```py #!/usr/bin/python # -*- coding: UTF-8 -*- import requests url = 'https://mp.weixin.qq.com/mp/profile_ext?action=getms 阅读全文
posted @ 2023-07-02 18:41 超级无敌美少男战士 阅读(82) 评论(0) 推荐(0)

2023年6月26日 #

摘要: # `code2md/run_img2markdown.command` ```sh #! /bin/bash source /Users/song/Code/script_python/code2md/venv/bin/activate # echo -n '请任意拖入文件夹中的一个文件:' # 阅读全文
posted @ 2023-06-26 22:02 超级无敌美少男战士 阅读(34) 评论(0) 推荐(0)

摘要: # `snippets/markdown.json` ```json { // Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and 阅读全文
posted @ 2023-06-26 21:44 超级无敌美少男战士 阅读(12) 评论(0) 推荐(0)

2023年6月24日 #

摘要: # 组织Python代码技巧 [英文版链接](https://guicommits.com/organize-python-code-like-a-pro/) ## 一.构建Python项目 首先关注目录结构、文件命名和模块组织。 我 建议把所有的模块都放在src目录下,所有测试都和它并排。 pyt 阅读全文
posted @ 2023-06-24 17:35 超级无敌美少男战士 阅读(56) 评论(0) 推荐(0)

2023年6月23日 #

摘要: # `code2md\code2md_v1.bat` ```bat @echo off :start set filePath= set /p filePath=Please drag a file in the project(or project dir): D:\Python38\python 阅读全文
posted @ 2023-06-23 09:51 超级无敌美少男战士 阅读(35) 评论(0) 推荐(0)

2023年6月22日 #

摘要: # `code2md/run_img2markdown.command` ```sh #! /bin/bash source /Users/song/Code/script_python/code2md/venv/bin/activate # echo -n '请任意拖入文件夹中的一个文件:' # 阅读全文
posted @ 2023-06-22 19:40 超级无敌美少男战士 阅读(30) 评论(0) 推荐(0)

摘要: # `code2md/run_img2markdown.command` ```sh #! /bin/bash source /Users/song/Code/script_python/code2md/venv/bin/activate # echo -n '请任意拖入文件夹中的一个文件:' # 阅读全文
posted @ 2023-06-22 16:55 超级无敌美少男战士 阅读(129) 评论(0) 推荐(0)

2023年6月15日 #

摘要: # k均值聚类_异常检测 1. 先来张图,快速理解 ![img](https://img2023.cnblogs.com/blog/1222814/202306/1222814-20230615232856641-500630803.png) 2. 正常数据应该分布在两个簇中 3. 异常数据,距离两 阅读全文
posted @ 2023-06-15 23:30 超级无敌美少男战士 阅读(127) 评论(0) 推荐(0)

摘要: # opencv计算图片中出现面积最大最经常出现的颜色 1. opencv 2. K均值聚类算法 3. 颜色相似性,欧几里得距离越小,颜色越相似 ```py import math import cv2 import numpy as np from sklearn.cluster import K 阅读全文
posted @ 2023-06-15 22:44 超级无敌美少男战士 阅读(233) 评论(0) 推荐(0)

2023年6月4日 #

摘要: # `/Users/song/Downloads/WebGPU视频教程/2. 3D几何变换数学基础/9.片元的屏幕坐标/1.片元坐标/index.html` ```html Threejs中文网:http://www.webgl3d.cn/ ``` # `/Users/song/Downloads/ 阅读全文
posted @ 2023-06-04 12:39 超级无敌美少男战士 阅读(66) 评论(0) 推荐(0)

摘要: # `/Users/song/Downloads/WebGPU视频教程/1.WebGPU快速入门/9.三角形拼接矩形/2.三角形拼接矩形.html` ```html Threejs中文网:http://www.webgl3d.cn/ ``` # `/Users/song/Downloads/WebG 阅读全文
posted @ 2023-06-04 12:36 超级无敌美少男战士 阅读(90) 评论(0) 推荐(0)

摘要: # webgpu的中的顶点插值 1. 正常情况下,顶点着色器都是返回一个四维向量,如果要画一个三角形,呢么就是pos就是我们传入的三个顶点坐标,返回值就是将这些坐标转换成四维向量返回 ```rs // 顶点着色器代码 @vertex fn main(@location(0) pos: vec3) - 阅读全文
posted @ 2023-06-04 11:53 超级无敌美少男战士 阅读(31) 评论(0) 推荐(0)

2023年5月24日 #

摘要: # `/Users/song/Code/webgpu_learn/webgpu-for-beginners/webgpu_learn_typescript/index.html` ```html Vite + TS ``` # `/Users/song/Code/webgpu_learn/webgp 阅读全文
posted @ 2023-05-24 23:53 超级无敌美少男战士 阅读(74) 评论(0) 推荐(0)

2023年5月22日 #

摘要: # `/Users/song/Code/webgpu_learn/webgpu-for-beginners/webgpu_learn_typescript/index.html` ```html Vite + TS ``` # `/Users/song/Code/webgpu_learn/webgp 阅读全文
posted @ 2023-05-22 23:49 超级无敌美少男战士 阅读(45) 评论(0) 推荐(0)

2023年5月20日 #

摘要: > 100+学习的编程网站_国外篇 > Here are 100+ websites where you can learn to code online for free. If you're looking to learn techni...... Mar 30, 2023 Tashia T. 阅读全文
posted @ 2023-05-20 11:38 超级无敌美少男战士 阅读(100) 评论(0) 推荐(0)

2023年5月17日 #

摘要: 基于webpack的typescript项目搭建 该项目是搭建了一个数值转换的前端项目,使用了webpack,typescript 重点学习webpack.config.js的配置 /Users/song/Code/webgpu_learn/webgpu-for-beginners/03 types 阅读全文
posted @ 2023-05-17 22:20 超级无敌美少男战士 阅读(105) 评论(0) 推荐(0)

摘要: 一个命令相当于执行两个命令 { "name": "npm-test", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { // 直接就是在npm start,可以就是先npm i,然后在npm run se 阅读全文
posted @ 2023-05-17 20:51 超级无敌美少男战士 阅读(42) 评论(0) 推荐(0)

2023年5月5日 #

摘要: /Users/song/Code/flask_video_stream/main3.py from flask import Flask, Response, send_file import cv2 from PIL import Image import io app = Flask(__nam 阅读全文
posted @ 2023-05-05 23:45 超级无敌美少男战士 阅读(123) 评论(0) 推荐(0)

2023年4月24日 #

摘要: 元组的初始化 39行 分割字符串,然后直接放到元组里面 通过静态方法或类方法实例对象然后返回 34行和40行,静态方法和类方法创建实例对象,然后返回 34行和41行 76和79行, 一般来说,创建实例对象都是直接通过调用类名new一个实例对象,但是有时候,调用有些要传入__init__()函数的参数 阅读全文
posted @ 2023-04-24 23:41 超级无敌美少男战士 阅读(25) 评论(0) 推荐(0)

2023年4月22日 #

摘要: /Users/song/codelearn/FastAPI-Oracle-main/main.py import os, secrets, requests, json from typing import List, Optional from fastapi import Depends, Fa 阅读全文
posted @ 2023-04-22 20:26 超级无敌美少男战士 阅读(82) 评论(0) 推荐(0)

2023年4月21日 #

摘要: @property装饰器 访问器 修改器 之前我们讨论过Python中属性和方法访问权限的问题,虽然我们不建议将属性设置为私有的,但是如果直接将属性暴露给外界也是有问题的,比如我们没有办法检查赋给属性的值是否有效。我们之前的建议是将属性命名以单下划线开头,通过这种方式来暗示属性是受保护的,不建议外界 阅读全文
posted @ 2023-04-21 21:43 超级无敌美少男战士 阅读(45) 评论(0) 推荐(0)

摘要: heatmap > heatmap2d.ts import { Mesh, Texture, MeshBasicMaterial, PlaneGeometry, Box3, Vector3, } from 'three'; import Base from '../Base'; import Hea 阅读全文
posted @ 2023-04-21 20:57 超级无敌美少男战士 阅读(209) 评论(0) 推荐(0)

2023年4月20日 #

摘要: 魔法函数 魔术访达的一些说明 23-24 魔术方法并不是来自继承,而是python自带的这些方法,跟类没有关系 __getitem__方法 因为实现了__getitem__(),所以可以直接遍历这个student对象 __getitem__方法的参数 item就是相当于数组的下标 13行 对象实例化 阅读全文
posted @ 2023-04-20 22:26 超级无敌美少男战士 阅读(27) 评论(0) 推荐(0)

2023年4月16日 #

摘要: cheerio 关键字过滤 关键字替换 内容剔除 八曲仙人之歌讲解 import { log } from "console"; import { readFileSync, readdirSync, lstatSync, createWriteStream, mkdirSync, statSync 阅读全文
posted @ 2023-04-16 21:44 超级无敌美少男战士 阅读(79) 评论(0) 推荐(0)

2023年4月15日 #

摘要: simple heat的使用 <script setup lang="ts"> import { SimpleHeat } from "simpleheat-ts"; import * as dat from "dat.gui"; let frame: number | null = null; c 阅读全文
posted @ 2023-04-15 23:36 超级无敌美少男战士 阅读(105) 评论(0) 推荐(0)

2023年4月14日 #

摘要: miniconda python中的对象的三个基本特征 查看id type()查看类型,print()查看值 python和java面相对象的区别 函数和类的对象特性 装饰器用到了那个特性 python中函数也可以当做返回值 函数赋值给另外一个变量 类赋值给另外一个变量 将函数,类添加到一个列表中 阅读全文
posted @ 2023-04-14 22:31 超级无敌美少男战士 阅读(18) 评论(0) 推荐(0)

2023年4月11日 #

摘要: gitpython将每次的commit导出项目(可以导出到指定文件夹) import git import subprocess import os from git.repo import Repo from git.repo.fun import is_git_dir class GitRepo 阅读全文
posted @ 2023-04-11 22:38 超级无敌美少男战士 阅读(66) 评论(0) 推荐(0)

2023年4月6日 #

摘要: click点击添加物体,shirft+click点击删除物体 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>three.js webgl - interactive - voxel painter</tit 阅读全文
posted @ 2023-04-06 23:19 超级无敌美少男战士 阅读(258) 评论(0) 推荐(0)

2023年4月5日 #

摘要: E:\公众号文章采集\fi_filter_过滤器\src\exact_新浪博客手机版提取连接.js const fs = require('fs'); const jsdom = require('jsdom'); const { JSDOM } = jsdom; fs.readdir('./htm 阅读全文
posted @ 2023-04-05 23:49 超级无敌美少男战士 阅读(114) 评论(0) 推荐(0)

2023年4月4日 #

摘要: nodejs cheerio 提取超链接 import { log } from "console"; import { readFileSync, readdirSync, lstatSync, createWriteStream, mkdirSync, statSync, } from "fs" 阅读全文
posted @ 2023-04-04 19:03 超级无敌美少男战士 阅读(35) 评论(0) 推荐(0)

摘要: python代码 main.py import os import re import shutil import sys import easygui from easygui import * from pathlib import Path class User(EgStore): def _ 阅读全文
posted @ 2023-04-04 19:02 超级无敌美少男战士 阅读(23) 评论(0) 推荐(0)

2023年4月3日 #

摘要: import * as THREE from "three"; import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"; export function initThree() { THREE.Object3 阅读全文
posted @ 2023-04-03 19:52 超级无敌美少男战士 阅读(364) 评论(0) 推荐(0)

2023年3月30日 #

摘要: E:\song3\agv_backend_demo\gunicorn.conf.py # 监听内网端口 bind = '0.0.0.0:8001' # 工作目录 chdir = '/fsm/backend/app' # 并行工作进程数 workers = 4 # 指定每个工作者的线程数 thread 阅读全文
posted @ 2023-03-30 14:59 超级无敌美少男战士 阅读(233) 评论(0) 推荐(0)

2023年3月27日 #

摘要: /Users/song/codelearn/sqlalchemy_learn/init_test_data.py #!/usr/bin/env python3 # -*- coding: utf-8 -*- import asyncio import random from faker import 阅读全文
posted @ 2023-03-27 22:10 超级无敌美少男战士 阅读(203) 评论(0) 推荐(0)

2023年3月16日 #

摘要: /Users/song/codelearn/golang/bubble-master/go.mod module bubble go 1.13 require ( github.com/0xAX/notificator v0.0.0-20220220101646-ee9b8921e557 // in 阅读全文
posted @ 2023-03-16 21:28 超级无敌美少男战士 阅读(30) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页