我们从Python开源项目中,提取了以下16个代码示例,用于说明如何使用System.Char()。
def Write(self, value, *args): if self.old_out: self.old_out.Write(value, *args) if not args: if type(value) is str or type(value) is System.Char: if self.is_stdout: self.backend.write_stdout(str(value).replace('\r\n', '\n')) else: self.backend.write_stderr(str(value).replace('\r\n', '\n')) else: super(DotNetOutput, self).Write.Overloads[object](value) else: self.Write(System.String.Format(value, *args))
def WriteLine(self, value, *args): if self.old_out: self.old_out.WriteLine(value, *args) if not args: if type(value) is str or type(value) is System.Char: if self.is_stdout: self.backend.write_stdout(str(value).replace('\r\n', '\n') + '\n') else: self.backend.write_stderr(str(value).replace('\r\n', '\n') + '\n') else: super(DotNetOutput, self).WriteLine.Overloads[object](value) else: self.WriteLine(System.String.Format(value, *args))