当前位置: 首页>>代码示例>>Python>>正文


Python ShareYourSystem._str方法代码示例

本文整理汇总了Python中ShareYourSystem._str方法的典型用法代码示例。如果您正苦于以下问题:Python ShareYourSystem._str方法的具体用法?Python ShareYourSystem._str怎么用?Python ShareYourSystem._str使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ShareYourSystem的用法示例。


在下文中一共展示了ShareYourSystem._str方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: mapPoint

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
	def mapPoint(self):

		#debug
		self.debug(
				[
					'We map point here',
					'PointMapVariable is ',
					SYS._str(self.PointMapVariable)
				]
			)

		#map
		map(
				lambda __ElementVariable:
				self.point(
					*__ElementVariable
				)
				if type(__ElementVariable) in [list,tuple]
				else self.point(
					__ElementVariable
				),
				self.PointMapVariable if type(
					self.PointMapVariable
				)==list else self.PointMapVariable.items()
			)
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:27,代码来源:__init__+copy+2.py

示例2: getDebuggedStrWithPrintVariable

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
def getDebuggedStrWithPrintVariable(_PrintVariable):

	#Type
	Type=type(_PrintVariable)

	#Debug
	'''
	print('l 62 Debugger')
	print('Type is ',Type)
	print('SYS.StrTypesList is ',SYS.StrTypesList)
	print('')
	'''
	
	#set the DebuggedStr with the _PrintVariable
	if type(_PrintVariable) in SYS.StrTypesList:
		return _PrintVariable
	elif type(_PrintVariable)==tuple:

		#Check for an end
		if len(_PrintVariable)>3:
			DebuggedEndStr=_PrintVariable[3]
		else:
			DebuggedEndStr=""

		#join
		DebuggedStr='\n'.join(
		map(
				lambda __KeyStr:
				_PrintVariable[0]+__KeyStr+DebuggedEndStr+' is '+SYS._str(
					_PrintVariable[1][__KeyStr] if type(
						_PrintVariable[1]
					) in [collections.OrderedDict,dict]
					else getattr(
							_PrintVariable[1],
							__KeyStr
						) 
					if hasattr(_PrintVariable[1],__KeyStr) 
					else "WARNING : No attribute like this"
				,**{
						'RepresentingAlineaIsBool':False
					}),
				_PrintVariable[2]
			)
		)+'\n'

		#return
		return DebuggedStr

	elif type(_PrintVariable)==list:
		return '\n'.join(map(getDebuggedStrWithPrintVariable,_PrintVariable))

	else:

		#return
		return str(_PrintVariable)
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:57,代码来源:__init__.py

示例3: do_view

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
	def do_view(self):

		#debug
		'''
		self.debug(
				[
					'We view here',
					('self.',self,[
						'ViewingQtBool'
					])
				]
			)
		'''

		#Check
		if self.ViewingIdStr=="":
			self.ViewingIdStr=str(self.PrintIdInt)

		#debug
		self.debug(
			[
				"id(self) is ",
				str(id(self)),
				('self.',self,['ViewingIdStr']),
				'SYS.IdDict["+self.ViewingIdStr+"]',
				SYS._str(SYS.IdDict[int(self.ViewingIdStr)]),
				#SYS._str(SYS.IdDict[id(self)]),
				('self.',self,[
					'ViewingXVariable',
					'ViewingYVariable'
				])
			]
		)

		#set
		self.ViewedTagStr=self.StructureTagStr.replace('*','')

		#/####################/#
		# Now we view each Axe
		#

		#map
		map(
			lambda __AxeStr:
			self.viewAxe(__AxeStr),
			[
				'X',
				'Y'
			]
		)


		"""
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:55,代码来源:__init__+copy+2.py

示例4: do_text

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
	def do_text(self):

		#Init
		self.TextedConsoleStr=""

		#Check
		if hasattr(self,'hdfview'):
			
			#Add
			self.TextedConsoleStr+="Associated Hdf file :\n"
			self.TextedConsoleStr+=self.ViewedPointDeriveControllerVariable.hdfview(
							).HdformatedConsoleStr

		#Check
		if self.ViewedPointDeriveControllerVariable.PymongoneDatabaseVariable!=None:
			
			#Check
			if self.TextingConditionVariable==None:
				self.TextingConditionVariable={}

			#map
			self.TextedCollectionStrsList=map(
					lambda __CollectionTuple:
					__CollectionTuple[0]+' : \n'+SYS._str(
						list(
							__CollectionTuple[1].find(
									self.TextingConditionVariable[__CollectionTuple[0]]
									if __CollectionTuple[0] in self.TextingConditionVariable
									else {},
									self.TextingQueryVariable[__CollectionTuple[0]]
									if __CollectionTuple[0] in self.TextingQueryVariable
									else {}
								)
						)
					),
					self.ViewedPointDeriveControllerVariable.PymongoneDatabaseVariable.__dict__.items()
				)

			self.TextedConsoleStr+="Associated Mongo db :\n"
			self.TextedConsoleStr='\n'.join(self.TextedCollectionStrsList)
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:42,代码来源:__init__.py

示例5: mimic_set

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
	def mimic_set(self):

		#Check
		if self.SettingKeyVariable in [
											FigurePlotKeyStr,
											FigureScatterKeyStr,
											FigureBarKeyStr
										]:

			#debug
			'''
			self.debug(
					[
						'before plot',
						('self.',self,[
							#'ViewDeriveControllerVariable',
							'SettingValueVariable'
						])
					]
				)
			'''

			#init
			FigurePlotArgumentDict=Setter.ArgumentDict(
					self.SettingValueVariable,
					self.ViewDeriveControllerVariable
				)

			#debug
			'''
			self.debug(
					[
						'We plot here',
						'FigurePlotArgumentDict is',
						SYS._str(FigurePlotArgumentDict)
					]
				)
			'''

			#plot
			self.FigureCartoonVariablesList.append(
				self.FiguredAxesVariable.plot(
					*FigurePlotArgumentDict['LiargVariablesList'],
					**FigurePlotArgumentDict['KwargVariablesDict']
				)[0]
			)

			#debug
			'''
			self.debug(
				[
					('self.',self,['FigureCartoonVariablesList']),
					#str(self.FigureCartoonVariablesList[0][0]),
				]
			)
			'''

			#return 
			return {'HookingIsBool':False}

		elif self.SettingKeyVariable==FigureAxesKeyStr:

			#debug
			'''
			self.debug(
					[
						'before axes',
						('self.',self,[
							#'ViewDeriveControllerVariable',
							'FiguredAxesVariable'
						])
					]
				)
			'''

			#map
			ArgumentTuplesList=map(
					lambda __ItemTuple:
					(
						__ItemTuple[0],
						Setter.ArgumentDict(
								__ItemTuple[1],
								self.ViewDeriveControllerVariable
							)
					),
					SYS.SetList(
						self.SettingValueVariable
					)
				)

			
			#/#################/#
			# Special case for the legend
			#

			#dict
			ArgumentDict=dict(ArgumentTuplesList)
			if 'legend' in ArgumentDict:

				"""
#.........这里部分代码省略.........
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:103,代码来源:__init__+copy+3.py

示例6:

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
	#DatabasingSealTuplesList
	[
		#GetStr #ColumnStr #Col
		('MyInt','MyInt',tables.Int64Col()),
		('MyStr','MyStr',tables.StringCol(10)),
		('MyIntsList','MyIntsList',tables.Int64Col(shape=3))
	]
)
							
	
#Definition the AttestedStr
SYS._attest(
	[
		'MyController is '+SYS._str(
		MyController,
		**{
			'RepresentingBaseKeyStrsListBool':False,
			'RepresentingAlineaIsBool':False
		}
		),
		'MyController["<Databasers>ThingsDatabaser"].DatabasedModelClass.__dict__ is '+SYS._str(
		dict(MyController['<Databasers>ThingsDatabaser'].DatabasedModelClass.__dict__.items()
			) if MyController['<Databasers>ThingsDatabaser'
		].DatabasedModelClass!=None else {},**{'RepresentingAlineaIsBool':False}
		)
	]
) 

#Print

开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:31,代码来源:01_ExampleDoc.py

示例7: pyplotChart

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]

#.........这里部分代码省略.........
				#])
			]
		)

		#/#################/#
		# First shift in the grid
		#

		#Check
		if self.ManagementIndexInt>0:

			#debug
			'''
			self.debug(
					[
						'first we shift',
						'self.PyplotedParentPanelDerivePyploterVariable.PyplotedCursorIntsList is ',
						str(self.PyplotedParentPanelDerivePyploterVariable.PyplotedCursorIntsList),
						('self.',self,['PyplotingShapeIntsTuple','PyplotingShiftIntsTuple'])
					]
				)
			'''

			#get
			PreviousChartPyploter=self.ParentDeriveTeamerVariable.ManagementDict.getValue(
				self.ManagementIndexInt-1
			)

			#debug
			self.debug(
				[
					'We have getted the PreviousChartPyploter',
					'PreviousChartPyploter is ',
					SYS._str(PreviousChartPyploter)
				]
			)

			#shift
			if self.PyplotingShiftIntsTuple[0]>0:
				self.PyplotedParentPanelDerivePyploterVariable.PyplotedCursorIntsList[0
				]+=self.PyplotingShiftIntsTuple[0]+PreviousChartPyploter.PyplotingShapeIntsTuple[0]
			if self.PyplotingShiftIntsTuple[1]>0:
				self.PyplotedParentPanelDerivePyploterVariable.PyplotedCursorIntsList[1
				]+=self.PyplotingShiftIntsTuple[1]+PreviousChartPyploter.PyplotingShapeIntsTuple[1]

			#debug
			'''
			self.debug(
					[
						'Ok we have shifted',
						'now we link with the fig',
						('self.PyplotedParentPanelDerivePyploterVariable.',self.PyplotedParentPanelDerivePyploterVariable,
							['PyplotedCursorIntsList']),
					]
				)
			'''

		#set
		if self.PyplotedParentPanelDerivePyploterVariable!=None:
			self.PyplotedAnchorIntsList=copy.copy(
				self.PyplotedParentPanelDerivePyploterVariable.PyplotedCursorIntsList
			)

		#/#################/#
		# init
		#
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:70,代码来源:__init__NBON.py

示例8: print

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
#ImportModules
import ShareYourSystem as SYS

#Definition of a Packager instance and module
MyPackager=SYS.PackagerClass(
	).package(
		'ShareYourSystem.Standards.Interfacers.Printer'	
	)

#Definition the AttestedStr
print('MyPackager'+SYS._str(MyPackager))


开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:13,代码来源:01_ExampleDoc.py

示例9: print

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
				('MyIntsList','MyIntsList',SYS.tables.Int64Col(shape=3))
			]	
		}
	).model(
	)

#Build a structure with a database
SYS.mapSet(
		MyModeler.ModeledHdfTable,
		[
			('row.__setitem__',{'#liarg':('MyStr',"hello")}),
			('row.append',{'#liarg':None}),
			('row.__setitem__',{'#liarg':('MyStr',"bonjour")}),
			('row.__setitem__',{'#liarg':('MyIntsList',[4,5,6])}),
			('row.append',{'#liarg':None}),
			('flush',{'#liarg':None})
		]
)

#Definition the AttestedStr
print('MyModeler is ')
SYS._print(MyModeler)

#view
print('hdf5 file is : \n'+SYS._str(MyModeler.hdfview()))

#close
MyModeler.file(_ModeStr='c')


开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:30,代码来源:05_ExampleDoc.py

示例10: do_point

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
	def do_point(self):

		#debug
		'''
		self.debug(
			[
				'we point here',
				('self.',self,[
								'PointingToGetVariable',
								'PointingToSetKeyVariable'
							])
			]
		)
		'''

		#Check
		if self.PointingToGetVariable!=None:

			#/###################/#
			# First point TO like a classic set
			#

			#debug
			self.debug(
				[
					'First we get the target',
					('self.',self,['PointingToGetVariable'])
				]
			)

			#get
			PointedToVariable=self[
				self.PointingToGetVariable
			]

			#debug
			'''
			self.debug(
				[
					'PointedToVariable is '+SYS._str(
						PointedToVariable
					),
					'If it is None, maybe we have to parent first'
				]
			)
			'''

			#Check
			"""
			if PointedToVariable==None:

				#parent
				self['?^']

				#debug
				self.debug(
						[
							'We have parented',
							('self.',self,['ParentedTotalPathStr']),
							'So we can get again'
						]
					)

				#get
				PointedToVariable=self[
					self.PointingToGetVariable
				]
			"""

			#debug
			'''
			self.debug(
				[
					'PointedToVariable is '+SYS._str(
						PointedToVariable
					),
					'Now we check the set key str'
				]
			)
			'''

			#/####################/#
			# Check for the SetKeyVariable
			#

			#Check
			if self.PointingToSetKeyVariable in [None,""]:

				#debug
				'''
				self.debug(
						[
							"self.PointingToSetKeyVariable in [None,""]...",
							"so we use the PointingGetVariable to name the pointer"
						]
					)
				'''

				#str
				PointedToSetKeyVariable=str(
#.........这里部分代码省略.........
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:103,代码来源:__init__+copy+2.py

示例11: print

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
		}
	).model(
	).mapSet(
		{
			'MyInt':0,
			'MyStr':"hello",
			'MyIntsList':[2,4,1]
		}
	).insert(
	).mapSet(
		{
			'MyInt':5,
			'MyStr':"bonjour",
			'MyIntsList':[0,0,0]
		}
	).insert(
	).retrieve(
		#RetrievingIndexIntsList
		[0,0]	
	)
		
#Definition the AttestedStr
print('MyRetriever is ')
SYS._print(MyRetriever) 

#print
print('mongo db is : \n'+SYS._str(MyRetriever.pymongoview()))

#Print
MyRetriever.file(_ModeStr='c')
开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:32,代码来源:01_ExampleDoc.py

示例12:

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
#Definition a Nbconverter
MyNbconverter=Nbconverter.NbconverterClass().package(
		'ShareYourSystem.Standards.Objects.Concluder'
	).scriptbook(
		**{
			'GuidingBookStr':'Doc'
		}
	).notebook(
		'Presentation.ipynb'
	).nbconvert(
		'Readme.md',
		'Slide'
)
		
#Definition the AttestedStr
SYS._attest(
	[
		'MyNbconverter is '+SYS._str(
		MyNbconverter,
		**{
			'RepresentingBaseKeyStrsListBool':False,
			'RepresentingAlineaIsBool':False
			}
		)
	]
)  

#Print


开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:30,代码来源:03_ExampleDoc.py

示例13:

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
#ImportModules
import ShareYourSystem as SYS
from ShareYourSystem.Standards.Modelers import Explorer
import tables

#Definition a structure with a db
ThingsExplorer=Explorer.ExplorerClass()

#Definition the AttestedStr
SYS._attest(
	[
		'ThingsExplorer is '+SYS._str(
		ThingsExplorer,
		**{
			'RepresentingBaseKeyStrsListBool':False,
			'RepresentingAlineaIsBool':False
		}
		),
		'hdf5 file is : '+ThingsExplorer.hdfview().hdfclose().HdformatedConsoleStr
	]
) 

#Print


开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:25,代码来源:01_ExampleDoc.py

示例14:

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
MyDistinguisher.distinguish(
	"Distinguishers",[
	[('MyStr',"hello")],
	[('MyInt',0)]
])

#distinguish through setting
MyDistinguisher.__setitem__(
	"Dis_<Distinguishers>",
	[
		[('MyOtherStr',"bonjour")],
		[('MyOtherInt',1)]
	]
)

#Definition the AttestedStr
SYS._attest(
	[
		'MyDistinguisher is '+SYS._str(
		MyDistinguisher,
		**{
			'RepresentingBaseKeyStrsListBool':False,
			'RepresentingAlineaIsBool':False
		}
		)
	]
)  

#Print

开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:31,代码来源:01_ExampleDoc.py

示例15: print

# 需要导入模块: import ShareYourSystem [as 别名]
# 或者: from ShareYourSystem import _str [as 别名]
					'MyIntsList'
			]	
		}
	).model(
	).mapSet(
		{
			'MyStr':"hello",
			'MyIntsList':[2,4,1]
		}
	).insert(
	).mapSet(
		{
			'MyStr':"bonjour",
			'MyIntsList':[0,0,1]
		}
	).insert(
	)

#print
print('MyInserter is ')
SYS._print(MyInserter)

#view
print('hdf5 file is : \n'+SYS._str(MyInserter.hdfview()))

#close
MyInserter.file(_ModeStr='c')



开发者ID:BinWang20140601,项目名称:ShareYourSystem,代码行数:29,代码来源:03_ExampleDoc.py


注:本文中的ShareYourSystem._str方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。