using System;
using System.IO;
namespace CSharp_Shell
{
public static class Program
{
public static void Main()
{
string[] a = { “〇”, “一” };
// 创建或覆盖一个文本文件
using (StreamWriter writer = new StreamWriter("2进制3位数文字符号排列组合.txt"))
{
writer.Write("\n输出 2 进制 3 位数符文字公式\n");
for (int i = 0; i < 2; i++)
{
for (int j = 0; j < 2; j++)
{
for (int k = 0; k < 2; k++)
{
writer.Write(a[i] + a[j] + a[k] + "\t");
}
}
}
}
}
}
}