Go - go.work, go.mod, go.sum
摘要:zzh@ZZHPC:~/zd/Github/RepoGo
goworkinitzzh@ZZHPC: /zd/Github/RepoGo cd web-service-gin/ zzh@ZZHPC:~/zd/Github/RepoGo/web-service-gin$ go mod init
阅读全文
Go - installation
摘要:Go installation Select the tab for your computer's operating system below, then follow its installation instructions. Remove any previous Go installat
阅读全文
Python - %=
摘要:>>> header = "Say hello in Python" >>> >>> def hello(name: str) -> str: ... """ ... %s ... ... Python is amazing! ... """ ... return f"Hello {name}. N
阅读全文
Shell - cat -v
摘要:~ >cat -v er_count.txt238755|2094|239098^M
阅读全文
Python - all()
摘要:Help on built-in function all in module builtins: all(iterable, /) Return True if bool(x) is True for all values x in the iterable. If the iterable is
阅读全文
Python - print()
摘要:Help on built-in function print in module builtins: print(*args, sep=' ', end='\n', file=None, flush=False) Prints the values to a stream, or to sys.s
阅读全文
Powershell - try catch
摘要:try { [System.IO.Compression.ZipFile]::ExtractToDirectory(
z1,dir_from,
enc)unzip_failed = $false } catch {
unzipfailed=true }
阅读全文
Python - pip cache location
摘要:(zpython) zzh@ZZHPC:~/.cache/pip$ du -sh .669M .
阅读全文
Grep for multiple patterns
摘要:The syntax is: Use extended regular expressions: grep -E 'pattern1|pattern2' *.py Try on older Unix shells/oses: grep -e pattern1 -e pattern2 *.pl Ano
阅读全文