Difference between revisions of "Python code created by Shim"

From Crop Genomics Lab.
Jump to: navigation, search
Line 1: Line 1:
 
using class as a high speed searchable variation
 
using class as a high speed searchable variation
  
class ClassName:
+
    class ClassName:
    def __init__(self,variation1,variation2,,,,):
+
          def __init__(self,variation1,variation2,,,,):
          self.variation1=variation1
+
              self.variation1=variation1
          self.variation2=variation2
+
              self.variation2=variation2
          ...
+
              ...
  
 
import the files include this class
 
import the files include this class

Revision as of 11:30, 26 March 2014

using class as a high speed searchable variation

    class ClassName:
         def __init__(self,variation1,variation2,,,,):
              self.variation1=variation1
              self.variation2=variation2
              ...

import the files include this class then, input data which you'd like to input to an instance like this way

ClassName(Data4variation1,Data4variation2,,,,)