নিম্নলিখিত গ্লোবাল ভেরিয়েবলগুলি বিশ্বব্যাপী উপলব্ধ।
গ্লোবাল পাইথন ইন্টারফেস।
আপনি পাইথন মডিউল আমদানি করতে পারেন এবং
Python
গ্লোবাল ভেরিয়েবলের মাধ্যমে পাইথন বিল্টইন প্রকার এবং ফাংশন অ্যাক্সেস করতে পারেন।import Python // Import modules. let os = Python.import("os") let np = Python.import("numpy") // Use builtin types and functions. let list: PythonObject = [1, 2, 3] print(Python.len(list)) // Prints 3. print(Python.type(list) == Python.list) // Prints true.
ঘোষণা
public let Python: PythonInterface