该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = "久久乘法表:\n";
for (int i = 1; i <= 9; i++)
{
for (int j = 1; j <= i; j++)
{
label1.Text += String.Format("{0}*{1}={2,-2:D}",i,j ,i *j );
}
label1.Text += "\n";
}
}
}
}
我不明白 label1.Text += String.Format("{0}*{1}={2,-2:D}",i,j ,i *j ); 是什么意思,特别是那个={2,-2:D}
求教