上一页 1 2 3 4 5 6 7 8 9 ··· 34 下一页
摘要: import random from queue import Queue start_time = time.time() # [360, 14, -0.26727742101246454], [361, 13, 0.6103671964150552] ... 0: X轴 1: Y轴 2: 振幅 阅读全文
posted @ 2021-11-24 11:26 一石数字欠我15w!!! 阅读(206) 评论(0) 推荐(0) 编辑
摘要: import random import threading from datetime import datetime from queue import Queue class SingletonType: _instance_lock = threading.Lock() def __new_ 阅读全文
posted @ 2021-11-18 15:19 一石数字欠我15w!!! 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 选择适合自己版本的frp版本 选择适合自己的frp版本 https://github.com/fatedier/frp/releases wget https://github.com/fatedier/frp/releases/download/v0.38.0/frp_0.38.0_linux_a 阅读全文
posted @ 2021-11-12 17:48 一石数字欠我15w!!! 阅读(326) 评论(0) 推荐(0) 编辑
摘要: version: '3' services: yapi-web: image: nightz/yapi:latest container_name: yapi-web restart: always ports: - "10031:3000" environment: - YAPI_ADMIN_AC 阅读全文
posted @ 2021-11-10 15:23 一石数字欠我15w!!! 阅读(57) 评论(1) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- """ @author: Mr_zhang @software: PyCharm @file: renamefile.py @time: 2021/8/18 下午2:55 """ import time import random # import o 阅读全文
posted @ 2021-08-18 16:10 一石数字欠我15w!!! 阅读(36) 评论(0) 推荐(0) 编辑
摘要: def is_valid(self, raise_exception=False): assert hasattr(self, 'initial_data'), ( 'Cannot call `.is_valid()` as no `data=` keyword argument was ' 'pa 阅读全文
posted @ 2021-08-11 09:15 一石数字欠我15w!!! 阅读(124) 评论(0) 推荐(0) 编辑
摘要: # 问题的起因是我后端设置如果参数为空不传。结果前端传给我空字符串。遂二次处理。 def create(self, request, *args, **kwargs): try: request.data._mutable = True except Exception as e: logger.i 阅读全文
posted @ 2021-08-07 11:38 一石数字欠我15w!!! 阅读(398) 评论(0) 推荐(0) 编辑
摘要: LOG_NAME = os.path.join(BASE_DIR, 'logs', 'script_import.log')class Logger(object): level_relations = { 'debug': logging.DEBUG, 'info': logging.INFO, 阅读全文
posted @ 2021-07-30 13:47 一石数字欠我15w!!! 阅读(54) 评论(0) 推荐(0) 编辑
摘要: import random import string def get_ip(): ips = ['58.14.0.0', '58.16.0.0', '58.24.0.0', '58.30.0.0', '58.32.0.0', '58.66.0.0', '58.68.128.0', '58.82.0 阅读全文
posted @ 2021-07-06 16:14 一石数字欠我15w!!! 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: 代码部署功能测试 部署功能测试代码,后端程序使用python3基于Django框架开发, 以pipenv作为包管理工具. .env 文件为项目环境变量配置文件 代码目录结构 ├── Dockerfile Dockerfile文件 ├── Pipfile 包管理文件 ├── Pipfile.lock 阅读全文
posted @ 2021-06-29 11:05 一石数字欠我15w!!! 阅读(83) 评论(0) 推荐(0) 编辑
摘要: # def module_resolver(namespace): # namespace_parts = namespace.split(".") # module_name = ".".join(namespace_parts[0:-1]) # cls_name = namespace_part 阅读全文
posted @ 2021-05-31 11:59 一石数字欠我15w!!! 阅读(38) 评论(0) 推荐(0) 编辑
摘要: # 质数因式分解 import math x = int(input("请输入一个大于10的整数:")) primes = [p for p in range(2, x // 2 + 1) if 0 not in [p % d for d in range(2, int(math.sqrt(p)) 阅读全文
posted @ 2021-05-28 11:15 一石数字欠我15w!!! 阅读(389) 评论(0) 推荐(0) 编辑
摘要: root@iZm5e85x7l9b634qjg73hsZ:~# history 1 ls 2 sudo apt-get update 3 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent softwar 阅读全文
posted @ 2021-05-26 10:17 一石数字欠我15w!!! 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 这个教程很详细 阅读全文
posted @ 2021-04-26 14:52 一石数字欠我15w!!! 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: package main import ( "github.com/gin-gonic/gin" "net/http" ) type UserInfo struct { Name string `json:"name"` Age int `json:"age"` Gender string `jso 阅读全文
posted @ 2021-04-13 15:54 一石数字欠我15w!!! 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 34 下一页
点击右上角即可分享
微信分享提示