上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 55 下一页
摘要: use rand::Rng; use std::{cmp::Ordering, io}; fn main() { println!("Hello, world!"); let secret_number = rand::thread_rng().gen_range(1, 101); println! 阅读全文
posted @ 2022-12-03 10:45 ascertain 阅读(14) 评论(0) 推荐(0) 编辑
摘要: s1 = '[{(b)}][[]]' s2 = '[{(b}][[]]' def brackets_match(s: str) -> bool: opening_brackets = '([{' closing_brackets = ')]}' nexus = {')': '(', ']': '[' 阅读全文
posted @ 2022-11-30 19:39 ascertain 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-11-30 19:15 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 判断一个整数是否为完全立方数 cubic number: import math cubical = int(input('number: ')) def is_cubical(cubical: int): n = math.ceil(pow(cubical.__abs__(), 1 / 3)) # 阅读全文
posted @ 2022-11-30 00:05 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-21 00:14 ascertain 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-11-10 12:53 ascertain 阅读(14) 评论(0) 推荐(0) 编辑
摘要: import os, sys from stat import * from typing import Callable def visit_file(file): print('visiting', file) def walktree(top, callback: Callable): pri 阅读全文
posted @ 2022-11-10 11:51 ascertain 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2022-11-10 01:55 ascertain 阅读(12) 评论(0) 推荐(0) 编辑
摘要: GitHub: Payload URL: https://jenkins-new.jam.only.sap/generic-webhook-trigger/invoke?token=resurrect&jobQuietPeriod=1 Pipeline: pipeline { agent { lab 阅读全文
posted @ 2022-11-09 20:45 ascertain 阅读(333) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env bash # delete all branches without upstream while read branch; do upstream=$(git rev-parse --abbrev-ref $branch@{upstream} 2>/dev/null) 阅读全文
posted @ 2022-11-09 18:41 ascertain 阅读(18) 评论(0) 推荐(0) 编辑
摘要: read line solve no newline while read line || [ -n "${line-}" ]; do echo $line done < <(printf 'a\nb') 阅读全文
posted @ 2022-11-09 18:37 ascertain 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env bash #while getopts a:b name; do # echo name: "$name", OPTARG: "$OPTARG", OPTIND: $OPTIND, OPTERR: "$OPTERR" #done echo "$*" echo "$@" 阅读全文
posted @ 2022-11-09 18:21 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要: # swap two variables without intermediate variable, but intermediate variable is applicable to various situations(even with complex objects)# the two 阅读全文
posted @ 2022-11-09 01:21 ascertain 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-11-04 10:28 ascertain 阅读(6) 评论(0) 推荐(0) 编辑
摘要: (49条消息) linux详解sudoers_独壹@无贰的博客-CSDN博客_sudoers 阅读全文
posted @ 2022-11-02 20:47 ascertain 阅读(28) 评论(0) 推荐(0) 编辑
摘要: cd在suse上仅是shell builtin, sudo仅仅执行的executable(外部命令), 路径由 /etc/sudoers 的Defaults secure_path = /path1:/path2 指定 There are two ways that it "won't work", 阅读全文
posted @ 2022-11-02 20:16 ascertain 阅读(66) 评论(0) 推荐(0) 编辑
摘要: https://phrase.com/blog/posts/beginners-guide-to-locale-in-python/ 阅读全文
posted @ 2022-11-02 15:42 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: Jenkins 环境变量就是通过 env 关键字暴露出来的全局变量,可以在 Jenkins 文件的任何位置使用 查看 Jenkins 系统内置环境变量 ${JENKINS_URL}/env-vars.html through pipeline pipeline { agent any stages 阅读全文
posted @ 2022-11-02 01:11 ascertain 阅读(594) 评论(0) 推荐(0) 编辑
摘要: https://github.com/jenkinsci/docker/blob/master/README.md 阅读全文
posted @ 2022-11-02 00:58 ascertain 阅读(13) 评论(0) 推荐(0) 编辑
摘要: https://www.baeldung.com/linux/locale-environment-variables To determine the current character mapping locale charmap f RHEL: /etc/locale.conf localec 阅读全文
posted @ 2022-10-28 01:26 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 55 下一页