参数是怎么接进来的

👁️ 2 人浏览 💬 0 人评论 ❤️ 添加收藏

运行下面这段程序,填写它打印出来的结果。

ASM = """    push rbp
    mov rbp, rsp
    mov dword ptr [rbp - 4], edi
    mov dword ptr [rbp - 8], esi
    mov eax, dword ptr [rbp - 4]
    add eax, dword ptr [rbp - 8]
    mov dword ptr [rbp - 12], eax
    mov eax, dword ptr [rbp - 12]
    add eax, 3
    pop rbp
    ret"""
lines = [l.strip() for l in ASM.strip().splitlines() if l.strip()]
first = [l for l in lines if "edi" in l or "esi" in l]
print(str(len(first)) + "/" + first[0].split(",")[1].strip())
提交你的答案
请登录后提交答案。
去登录
代码编辑器
Ctrl + Enter 运行
本次输入:
输出:

                        
👩‍🏫
AI
💬 题目评论

全部评论