11 2022 档案
摘要:s1 = '[{(b)}][[]]' s2 = '[{(b}][[]]' def brackets_match(s: str) -> bool: opening_brackets = '([{' closing_brackets = ')]}' nexus = {')': '(', ']': '['
阅读全文
摘要:A stack is a linear data structure that stores items in a last-in-first-out LIFO or first-in-last-out FILO manner, In stack, a new element is added at
阅读全文
摘要:判断一个整数是否为完全立方数 cubic number: import math cubical = int(input('number: ')) def is_cubical(cubical: int): n = math.ceil(pow(cubical.__abs__(), 1 / 3)) #
阅读全文
摘要:import typing class Node: def __init__(self, value): self.value = value self.prev = None self.next = None def __repr__(self): return f'Node({self.valu
阅读全文
摘要:import os, sys from stat import * from typing import Callable def visit_file(file): print('visiting', file) def walktree(top, callback: Callable): pri
阅读全文
摘要:def _convert_mode(mode: int): if not 0 <= mode <= 0o777: raise RuntimeError res = '' for v in range(0, 9): if mode >> v & 1: match v % 3: case 0: res
阅读全文
摘要:GitHub: Payload URL: https://jenkins-new.jam.only.sap/generic-webhook-trigger/invoke?token=resurrect&jobQuietPeriod=1 Pipeline: pipeline { agent { lab
阅读全文
摘要:#!/usr/bin/env bash # delete all branches without upstream while read branch; do upstream=$(git rev-parse --abbrev-ref $branch@{upstream} 2>/dev/null)
阅读全文
摘要:read line solve no newline while read line || [ -n "${line-}" ]; do echo $line done < <(printf 'a\nb')
阅读全文
摘要:#!/usr/bin/env bash #while getopts a:b name; do # echo name: "$name", OPTARG: "$OPTARG", OPTIND: $OPTIND, OPTERR: "$OPTERR" #done echo "$*" echo "$@"
阅读全文
摘要:# swap two variables without intermediate variable, but intermediate variable is applicable to various situations(even with complex objects)# the two
阅读全文
摘要:(49条消息) linux详解sudoers_独壹@无贰的博客-CSDN博客_sudoers
阅读全文
摘要:cd在suse上仅是shell builtin, sudo仅仅执行的executable(外部命令), 路径由 /etc/sudoers 的Defaults secure_path = /path1:/path2 指定 There are two ways that it "won't work",
阅读全文
摘要:https://phrase.com/blog/posts/beginners-guide-to-locale-in-python/
阅读全文
摘要:Jenkins 环境变量就是通过 env 关键字暴露出来的全局变量,可以在 Jenkins 文件的任何位置使用 查看 Jenkins 系统内置环境变量 ${JENKINS_URL}/env-vars.html through pipeline pipeline { agent any stages
阅读全文
摘要:https://github.com/jenkinsci/docker/blob/master/README.md
阅读全文