Загрузить файлы в «/»

This commit is contained in:
2026-03-30 13:53:14 +00:00
parent 9b32a7cbf7
commit 32b1fcc2f7
3 changed files with 27 additions and 0 deletions

13
main.py Normal file
View File

@@ -0,0 +1,13 @@
import ctypes
# Загрузите вашу библиотеку
mylib = ctypes.CDLL('calclib.dll')
# Укажите типы аргументов и возвращаемое значение для функции
mylib.calc.argtypes = (ctypes.c_float, ctypes.c_float, ctypes.c_char)
mylib.calc.restype = ctypes.c_float
# Вызовите функцию из библиотеки
result = mylib.calc(5, 5, "*")
print("Сумма:", result) # Вывод: Сумма: 25