@dynamicMemberLookup
public struct PythonInterface
ממשק לפייתון.
PythonInterface
מאפשר אינטראקציה עם Python. ניתן להשתמש בו כדי לייבא מודולים ולגשת באופן דינמי לסוגים ולפונקציות המובנות של Python.
הערה
זה לא מיועד ל-PythonInterface
להיות אתחול ישירות. במקום זאת, אנא השתמש במופע הגלובלי של PythonInterface
בשם Python
. מילון של מבני Python.
הַצהָרָה
public let builtins: PythonObject
הַצהָרָה
public func attemptImport(_ name: String) throws -> PythonObject
הַצהָרָה
public func `import`(_ name: String) -> PythonObject
הַצהָרָה
public subscript(dynamicMember name: String) -> PythonObject { get }
הַצהָרָה
public var version: PythonObject { get }
הַצהָרָה
public var versionInfo: PythonObject { get }