from my_library import ffi, lib @ffi.def_extern() def compute(first, second): """ Compute the absolute distance between two numbers. """ return abs(first - second) ãã®å®è£ ã®ã¹ããããã«ã¯ãé©åã«åãè¾¼ãããã®ç¹å¥ãªä»æ§ãå«ã¾ãã¦ãã¾ãã1è¡ç®ã§ããã¤ãããã¯ã©ã¤ãã©ãªãã ffi 㨠lib ãªãã¸ã§ã¯ããã¤ã³ãã¼ããã¾ããããã«ãã£ã¦ãcffiãæä¾ããé¢æ°ã¸ã¢ã¯ã»ã¹ãã¦ã®å®è£ ãå¯è½ã«ãªããã¡ã¢ãªã®å²ãå½ã¦ãªã©ãããè¤éãªã¿ã¹ã¯ã«å©ç¨ã§ããããã«ãªãã¾ãã my_library ã¨ããååã¨ããã¤ãããã¯ã©ã¤ãã©ãªã®ã©ã®ååã«å¯¾å¿ãããã¯ä¸è¨ã«å®ç¾©ãã¾ããã 次ã«ã¹ãããããè¦ã¦æ°ã¥ãã®ã¯ã @ffi.def_extern
{{#tags}}- {{label}}
{{/tags}}