[PYTHON] Difference between using and import on shield language

Difference between using and import on shield language

using-> already linked. import-> unlinked.

ex.shie


using Sys
using Os
using Collection

<-Standard module is using

ex.shie


import WindowsAPI
import ABC

<-Import non-standard modules (third-party or self-made modules)

ex.udml


※Opening HTTP->MARK-UP->UDML
Call Protocol->Start
[module1](WindowsAPI.so)
[module2](MyShield\ABC.a)
[module3](MyShield\MyLib.so)
define Entry EntryPoint eq ex->Start-Up->Main @If it is ex, it starts from the global space._If it is, it is invalid because it hits any one character._When you want to write-Must be written.
define Link Linking eq (module1,module2,module3)
out of !My-Shield-File.jcp where #Entry #Link open build 'ex.shie'
T set call scan is done. Would you like to compile again?'Yes'-or-'No'
T eq yes get File->Open Me get Nil
The ecro is finished. Thank you very much.
sys set Call Protocol->Quit 
※Closeing
Call sys->End

ex.shie


using WindowsAPI
using ABC
using MyLib
using Genelic
using 
from Sys using static Console
cdef square(x):
    #Compile time function(It is also possible to be a member)
    return x*x 

cpdef Fun():
    #Inline function get,The contents of set are actually pub cpdef Get_XXX(value T),pub cpdef Set_XXX():
    return float(Input("Enter numbers")) 

def Max<cdef T>(A T,B T) T Where T(self) and T(is not Null):
    #cdef is also used in compile-time generics.
    return if(A > B) A else B

def Min<T>(A T,B T) T Where T(self) and T(is not Null):
    #No def required for run-time generics.
    return if(A < B) A else B

static class Start_Up(Unit):
    def Main():
        Output(square(6))
        Output("The numbers are"+str(Fun())+"is")
        #processing

<-In this case, compilation is not possible without ex.udml.

Recommended Posts

Difference between using and import on shield language
Difference between process and job
Difference between "categorical_crossentropy" and "sparse_categorical_crossentropy"
Difference between regression and classification
Difference between np.array and np.arange
Difference between MicroPython and CPython
Difference between ps a and ps -a
Difference between return and print-Python
Difference between Ruby and Python split
Difference between list () and [] in Python
Difference between SQLAlchemy filter () and filter_by ()
Difference between == and is in python
Notes on using post-receive and post-merge
(Note) Difference between gateway and default gateway
Difference between Numpy randint and Random randint
Difference between sort and sorted (memorial)
Difference between python2 series and python3 series dict.keys ()
[Python] Difference between function and method
Difference between SQLAlchemy flush () and commit ()
Python --Difference between exec and eval
[Python] Difference between randrange () and randint ()
[Python] Difference between sorted and sorted (Colaboratory)
Create private and public keys using ssh-keygen (difference between Windows 10 and Linux)
[Xg boost] Difference between softmax and softprob
difference between statements (statements) and expressions (expressions) in Python
[Django ORM] Difference between values () and only ()
Difference between PHP and Python finally and exit
Difference between @classmethod and @staticmethod in Python
Difference between append and + = in Python list
Difference between nonlocal and global in Python
Difference between linear regression, Ridge regression and Lasso regression
[Python] Difference between class method and static method
Difference between docker-compose env_file and .env file
[Python Iroha] Difference between List and Tuple
[python] Difference between rand and randn output
speed difference between wsgi, Bottle and Flask
Difference between numpy.ndarray and list (dimension, size)
Difference between ls -l and cat command
Difference and compatibility verification between keras and tf.keras # 1
What is the difference between `pip` and` conda`?
Notes on installing Python3 and using pip on Windows7
[python] Difference between variables and self. Variables in class
About the difference between "==" and "is" in python
About the difference between PostgreSQL su and sudo
What is the difference between Unix and Linux?
Shield language var0.1
Initial settings for using Python3.8 and pip on CentOS8
Easy verification series on Katacoda "Installing and using Cockpit"
Can BERT tell the difference between "candy (candy)" and "candy (rain)"?
Difference between Ruby and Python in terms of variables
What is the difference between usleep, nanosleep and clock_nanosleep?
Difference between Numpy (n,) and (n, 1) notation [Difference between horizontal vector and vertical vector]
Communication between uWSGI and Nginx using Unix Domain Socket
Difference between return, return None, and no return description in Python
How to use argparse and the difference between optparse
I want to absorb the difference between the for statement on the Python + numpy matrix and the Julia for statement