@dynamicMemberLookup
public struct PythonInterface
อินเทอร์เฟซสำหรับ Python
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 }