准备 如果使用了 AWS Chalice 部署项目,且依赖包的体积不大,可以直接使用 Chalice 部署。会自动准备适配 Lambda 环境的依赖包,作为项目代码的一部分,整体压缩打包更新到 L
Signature algorithm. Could be one of these values : HS256: HMAC using SHA-256 hash algorithm HS384: HMAC using SHA-384 hash algorithm HS512: HMAC using SHA-512 hash algorithm RS256: RSASSA using SHA-256 hash algorithm RS384: RSASSA using SHA-384 hash algorithm RS512: RSASSA using SHA-512 hash algorithm ES256: ECDSA using P-256 curve and SHA-256 hash algorithm ES384: ECDSA using P-384 curve and SHA-384 hash algorithm ES512: ECDSA using P-521 curve and SHA-512
SAM (Serverless Application Model) 是 AWS 提供的一个用于构建无服务器应用程序的开源框架。 这里安装其命令行工具,用来方便快速部署 AWS Serverless 项目。 以下内容参考自 macOS的安装: 通
使用 -t 选项指定视频时长。 示例: ffmpeg -loop 1 -i image.png -c:v libx264 -t 30 -pix_fmt yuv420p video.mp4
两数相加@echo off set /a a=1,b=2 set /a result=%a%+%b% echo 加法运算:%a%+%b%=%result% pause > nul /a 表示进行赋值运算 %a%+%b% 两个变量相加 两数相减、相乘、相除@ec
如:在当前目录下的 test.txt 文本文件中随机读取一行数据 .bat @echo off setlocal enabledelayedexpansion for /f "tokens=*" %%i in (test.txt) do ( set /a h+=1 & set r!h!=%%i ) set /a s=%random% %% h+1 echo !r%s%! pause
有时候只是需要 Git 仓库里某个子文件夹里的源代码文件,并不想克隆整个仓库(可能整个仓库比较大)。例如只想下载某个课程系列里第一课的源代码案例 ch
re.sub 语法re.sub(pattern, repl, string, count=0, flags=0) 参数:Ref pattern 匹配模式 repl 匹配处将被替换成的文本 string 待替换的原文 count 限制替换数量 flags: - re.IGNORECASE 忽略大
创建 Excel 应用实例 'create new excel application object Set app = New Excel.Application 'set the applications visible property to false app.Visible = False '默认就是隐藏窗口。可以省略掉此行奢者 关闭 Excel 应用实例 'close the application app.Quit 'release outstanding object references Set app = Nothing
Function ExistSheetName(name As String) Dim sht As Worksheet For Each sht In Worksheets If sht.name = name Then ExistSheetName = True Exit Function End If Next ExistSheetName = False End Function