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


Python Processed.__str__方法代码示例

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


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

示例1: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.key, self.start, self.amount, self.since)

		assert len(output) == Header.size+self.length, "Output length (%s) did not match out length! (%s)" % (len(output, self.length))

		return output
开发者ID:jmingtan,项目名称:tpclient-ogre,代码行数:9,代码来源:Base.py

示例2: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output1 = pack(self.struct, self.id, self.modify_time, self.categories, self.name, self.desc, self.used, self.owner, self.components, self.feedback, self.properties)
		
		self.length = len(output1)
		output2 = Processed.__str__(self)

		return output2+output1
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:9,代码来源:Design.py

示例3: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, 
			self.name, \
			self.key,
			self.tp, \
			self.server, self.sertype, \
			self.rule, self.rulever, \
			self.locations, \
			self._optional)
		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:13,代码来源:Game.py

示例4: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
    def __str__(self):
        output = Processed.__str__(self)
        output += pack(
            self.struct,
            self.id,
            self.name_singular,
            self.name_plural,
            self.unit_singular,
            self.unit_plural,
            self.description,
            self.weight,
            self.size,
            self.modify_time,
        )

        return output
开发者ID:jmingtan,项目名称:tpclient-ogre,代码行数:18,代码来源:Resource.py

示例5: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
    def __str__(self):
        output = Processed.__str__(self)
        output += pack(self.struct, self.time, self.reason, self.turn_num, self.turn_name)

        return output
开发者ID:jmingtan,项目名称:tpclient-ogre,代码行数:7,代码来源:TimeRemaining.py

示例6: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.id, self.modify_time, self.categories, self.name, self.description, self.requirements, self.properties)

		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:7,代码来源:Component.py

示例7: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.id, self.name, self.description, self.number, self.modify_time)

		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:7,代码来源:Board.py

示例8: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:5,代码来源:Feature_Get.py

示例9: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.s)

		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:7,代码来源:Connect.py

示例10: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.id, self.slot, [], self.subject, self.body, self.turn, self.references.references)

		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:7,代码来源:Message.py

示例11: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.id, self.modify_time, self.categories, self.rank, self.name, self.display_name, self.description, self.calculate, self.requirements)

		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:7,代码来源:Property.py

示例12: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, \
			self.pos[0], self.pos[1], self.pos[2], self.size)

		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:8,代码来源:Object_GetID_ByPos.py

示例13: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.key, self.start, self.amount)

		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:7,代码来源:Base.py

示例14: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.id, self.name, self.race_name)

		return output
开发者ID:StupidIncarnate,项目名称:libtpproto-py,代码行数:7,代码来源:Player.py

示例15: __str__

# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
	def __str__(self):
		output = Processed.__str__(self)
		output += pack(self.struct, self.errno, self.s, self.references)

		return output
开发者ID:jmingtan,项目名称:tpclient-ogre,代码行数:7,代码来源:Fail.py


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