📄 quote.cs
字号:
using System;
namespace myComponents {
public class Quote {
Random myRand = new Random();
public string ShowQuote() {
switch (myRand.Next(0,3)) {
case 0:
return "Look before you leap";
case 1:
return "Necessity is the mother of invention";
case 2:
default:
return "Life is full of risks";
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -