本文整理汇总了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
示例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
示例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
示例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
示例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
示例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
示例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
示例8: __str__
# 需要导入模块: from Header import Processed [as 别名]
# 或者: from Header.Processed import __str__ [as 别名]
def __str__(self):
output = Processed.__str__(self)
return output
示例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
示例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
示例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
示例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
示例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
示例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
示例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