上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 71 下一页
摘要: Dockerhub 使用步骤官网地址 https://hub.docker.com/1、注册网页最下方点击sign up 2 输入账号密码登录dockerhub 3 点击create a repository创建仓库 4 、登录个人服务器系统,登录自己的docker账户 docker login5. 阅读全文
posted @ 2020-03-23 17:18 不带R的墨菲特 阅读(1157) 评论(0) 推荐(0)
摘要: du -h --max-depth=1,这个命令用于查看当前目录,哪个文件占用最大,删哪个 阅读全文
posted @ 2020-03-17 16:07 不带R的墨菲特 阅读(154) 评论(0) 推荐(0)
摘要: 1.假设线程组1,提取了一个token: 想要线程组2,每个请求引用在头或者请求体, 实现方式,线程组1中使用bean shell sample ${__setProperty(newtoken,${token},true)}; 线程组2调用使用: ${__P(newtoken,)} 请求参数查看n 阅读全文
posted @ 2020-03-17 00:47 不带R的墨菲特 阅读(339) 评论(0) 推荐(0)
摘要: import os import shutil # todo python 递归算法 def copy(src,dest): files=os.listdir(src) os.mkdir(dest) for file in files: src_file_path= os.path.join(src 阅读全文
posted @ 2020-03-12 16:28 不带R的墨菲特 阅读(381) 评论(0) 推荐(0)
摘要: a= [80, 46, 21, 18, 79, 78, 95, 7, 91, 4] length = len(a) for i in range(length): for j in range(length-1-i): if a[j]>a[j+1]: a[j],a[j+1]=a[j+1],a[j] 阅读全文
posted @ 2020-03-12 16:22 不带R的墨菲特 阅读(143) 评论(0) 推荐(0)
摘要: # coding=utf-8 import pandas as pd import numpy as np import uuid from hashlib import sha256 # batch_size of each time write rows to id_sha256.csv bat 阅读全文
posted @ 2020-03-12 16:20 不带R的墨菲特 阅读(729) 评论(0) 推荐(0)
摘要: netstat ano |findstr 8080 ,python subprocess 管道使用: import subprocess import threading def demo(iter_list, if_child=True): if not if_child: sub = subpr 阅读全文
posted @ 2020-03-12 16:13 不带R的墨菲特 阅读(285) 评论(0) 推荐(0)
摘要: alex和egon的故事: True zhangsan zhangsan {'name': 'zhangsan', 'address': 'addr', 'func': <function <lambda> at 0x037F0270>} zhangsanadd 动态导入模块: 执行: 反射重写at 阅读全文
posted @ 2020-03-11 20:00 不带R的墨菲特 阅读(170) 评论(1) 推荐(0)
摘要: 先来个开胃菜: 求最大值匿名函数 a=1b=3# 方法一foo = lambda a,b:max(a,b)r1= foo(a,b)#方法2foo1= lambda a,b: a if a>b else br2=foo1(1,3)print(r1,r2)进阶:def foo(it): return i 阅读全文
posted @ 2020-03-11 18:15 不带R的墨菲特 阅读(168) 评论(0) 推荐(0)
摘要: 您可能听说过,带有 yield 的函数在 Python 中被称之为 generator(生成器),何谓 generator ? 我们先抛开 generator,以一个常见的编程题目来展示 yield 的概念。 如何生成斐波那契數列 斐波那契(Fibonacci)數列是一个非常简单的递归数列,除第一个 阅读全文
posted @ 2020-03-11 12:12 不带R的墨菲特 阅读(222) 评论(0) 推荐(0)
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 71 下一页