예제 #1
0
	def echo(self, print_hex=False, tabs=""):
		#新昵称 array char nick
		print tabs+r"======新昵称 array char nick";
		tmp_str=str(self.nick);
		if(print_hex):tmp_str=show.bin2hex(tmp_str);
		print tabs+"[nick]=%s"%(tmp_str);

		return True;
예제 #2
0
	def echo(self, print_hex=False, tabs=""):
		#坐标x single object_pos_t x
		print tabs+r"======坐标x single object_pos_t x";
		print tabs+"[x]=>{";
		self.x.echo(print_hex, tabs+"    ");
		print tabs+"}";
		#坐标y list object_pos_t y
		print tabs+r"======坐标y list object_pos_t y";
		print tabs+r"[y]=>{";
		for i in range(len(self.y)):
			print tabs+r"    [%d]=>{"%(i);
			self.y[i].echo(print_hex,tabs+"    "*2);
		print tabs+"}\n";
		#坐标y array char ys
		print tabs+r"======坐标y array char ys";
		tmp_str=str(self.ys);
		if(print_hex):tmp_str=show.bin2hex(tmp_str);
		print tabs+"[ys]=%s"%(tmp_str);

		return True;