作业
Kivent 一叶荷包蛋
这个作者很懒,什么都没留下…
展开
-
4.7课后练习 python练习
一、构造一个包含10以内的质数数组二、挑选偶数方法一:使用取余数的方法判断方法二:使用按位余的方法,判断个位是否是偶数#方法一:取余法for i in array: if i % 2 == 0 : print(i,end=', ') for i in array: if i & 1 == 0: print(i,end=', ')三、读取txt数据集这里读取txt文本用了两种方法,第一种采用np,genfrom原创 2021-05-24 15:16:23 · 1080 阅读 · 0 评论 -
小作业-drawline换成drawrectangle和fillRectangle
C#作业```csharp//g.DrawLine(p, xo, yo, xo, Convert.ToInt32(yo + (h + 4) * dScale)); g.DrawRectangle(p, xo, yo, Convert.ToInt32(dScale), Convert.ToInt32(yo + (h + 4) * dScale)); g.FillRectangle(Brushes.Black, xo, yo, Convert.ToInt32(dScale), Convert.ToInt原创 2021-05-13 15:51:00 · 568 阅读 · 0 评论 -
C#摸鱼
C#的第一天using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace project2_1{ class Program { static void main(string[] args) { int a, b, c; Console.Writ原创 2021-03-03 18:15:19 · 177 阅读 · 1 评论