小编jth*_*jth的帖子

如何用亚马逊国家语言追加到数组?

假设我有一个状态,其输入是

{'myList': ['foo', 'bar']}
Run Code Online (Sandbox Code Playgroud)

其结果是hello,我想将结果附加到列表中,以便状态的输出变为

{'myList': ['foo', 'bar', 'hello']}
Run Code Online (Sandbox Code Playgroud)

我实际上想对几个连续的状态执行此操作,以便每个状态将其结果附加到存储在输入对象中的列表中。

有没有办法做到这一点?通过阅读输入和输出处理以及数组的内在函数,我没有看到解决方案。

amazon-web-services aws-step-functions

5
推荐指数
1
解决办法
1402
查看次数

How to log unhandled exceptions (with request ID) in AWS Lambda using Python?

AWS Lambda provides built-in logging configuration as described here so that log records include timestamp and request ID. Request ID is a UUID for a particular invocation of a Lambda function, so it's important to include it in each log record because it allows the user to query for all log records with a given request ID (using CloudWatch Logs Insights), which allows for retrieving log records from a particular Lambda invocation. (It is not sufficient to simply filter by …

python logging amazon-web-services python-3.x aws-lambda

5
推荐指数
0
解决办法
730
查看次数

(程序集x86实模式)程序结束时数据“中断”了吗?

这是(nasm x86实模式)的后续工作,如何在引导加载的扇区中写入/读取字符串?

我正在为NASM中的x86实模式开发玩具OS。512B引导扇区将其余代码加载到另一个扇区。问题是程序结束时我似乎空间不足。

这是源文件的开头:

;;; nasm -f bin -o boot.bin os.asm
;;; qemu-system-x86_64 boot.bin

    bits 16

    section boot, vstart=0x0000

    ;; Load next sector.
    ;; adapted from:
    ;; https://blog.benjojo.co.uk/post/interactive-x86-bootloader-tutorial
    mov ah, 0x02
    mov al, 1   
    mov ch, 0    
    mov cl, 2    
    mov dh, 0   
    mov bx, newsector 
    mov es, bx  
    xor bx, bx
    int 0x13
    jmp newsector:0

    newsector equ 0x0500

    times 510-($-$$) db 0
    db 0x55
    db 0xaa

    section os, vstart=0x0000
    mov ax, newsector
    mov ds, ax …
Run Code Online (Sandbox Code Playgroud)

x86 assembly operating-system real-mode nasm

3
推荐指数
1
解决办法
98
查看次数