Python-Dateien

Neu laden
Gefunden: 162 Datei(en)
mem_test.py
# Source Generated with Decompyle++
# File: mem_test.pyc (Python 3.13)

import os
from game_common.memory_tool.const import FILE_METHOD_NORMAL
from game_common.memory_tool.memory_tool import _init_output_file, _write_memory_tree_node_file
from game_common.memory_tool.memory_tree import MemoryTreeNode
filepath = 'D:\\Work\\内存数据\\mobile_2023_11_7\\据点探索\\PythonMemoryFlame'
filepath_o = filepath + '_out'
fp = open(filepath)
stack = []
cur_depth = 0
line = fp.readline()
if fp.readline():
    (depth, num, memory, name) = line.split(' ', 3)
    depth = int(depth)
    num = int(num)
    memory = int(memory)
    name = name[:-1]
    node = MemoryTreeNode(name, memory, num)
    if depth < 0:
        stack.append(node)
        cur_depth = 1
    elif cur_depth < depth:
        cur_depth -= 1
        stack.pop()
        if cur_depth < depth or cur_depth < depth:
            stack[-1].add_node(node)
            stack.append(node)
            cur_depth += 1
    line = fp.readline()
    if fp.readline():
        None(None, None)
    else:
        with None:
            if not None:
                pass
method = FILE_METHOD_NORMAL
file_handle = _init_output_file(filepath_o, method)
file_handle
_write_memory_tree_node_file(stack[0], file_handle, method, 'size')
None(None, None)