2018年12月12日

最近在看c#本质论和B站上对应这本书的视频

摘要: 最近在看c#本质论和B站上对应这本书的视频 阅读全文

posted @ 2018-12-12 09:38 天源 阅读(258) 评论(1) 推荐(0) 编辑

2018年11月14日

Linux系统管理笔记

摘要: linux发展史+安装+注意事项 Unix的发展 1965年,美国麻省理工学院(MIT)、 通用电气公司(GE)及AT&T的贝尔实验室联合 开发Multics工程计划,其目标是开发一种交互式的具有多道程序处理能为的分时操作系统,但因 Multics追求的目标过于庞大复杂,项目进度远远 落后于计划,最 阅读全文

posted @ 2018-11-14 10:36 天源 阅读(485) 评论(0) 推荐(0) 编辑

2018年11月13日

创建圆形类,其中包括set,get方法

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 圆{ class circle { int center_ 阅读全文

posted @ 2018-11-13 15:16 天源 阅读(291) 评论(0) 推荐(0) 编辑

2018年11月12日

交错序列前N项的和

摘要: int number = 0; int sum = 0; while (true) { Console.Write("请输入一个正整数(输入q退出程序):"); var str_input = Console.ReadLine();//获取输入的值 try { if (str_input == "q 阅读全文

posted @ 2018-11-12 11:03 天源 阅读(521) 评论(0) 推荐(0) 编辑

2018年11月8日

《21天学通C#》使用.NET数据类型定义变量

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace shiyong.NET数据类型定义变量{ class P 阅读全文

posted @ 2018-11-08 15:00 天源 阅读(198) 评论(0) 推荐(0) 编辑

<21天学通C#>使用unchecked使得命令编辑器不对代码进行检查,使用checked对代码进行检查

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 使用unchecked使得命令编辑器不对代码进行检查{ 阅读全文

posted @ 2018-11-08 14:51 天源 阅读(182) 评论(0) 推荐(0) 编辑

《21天学通C#》数字代表的字符

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace 数字和字符一一对应{ class Program { s 阅读全文

posted @ 2018-11-08 14:32 天源 阅读(165) 评论(0) 推荐(0) 编辑

爬虫下载妹子图片

摘要: import urllib.requestimport osimport randomcount = 0def url_open(url): req = urllib.request.Request(url) response = urllib.request.urlopen(url) html = 阅读全文

posted @ 2018-11-08 08:46 天源 阅读(280) 评论(0) 推荐(0) 编辑

下载一只猫的图片(其中500和600可以替换成其他的数字)

摘要: import urllib.requestreponse = urllib.request.urlopen('http://placekitten.com/g/500/600')cat_img = reponse.read()with open('E:\图片\cat_500_600.jpg','wb 阅读全文

posted @ 2018-11-08 08:45 天源 阅读(294) 评论(0) 推荐(0) 编辑

python正则表达式

摘要: import restring = 'I love FishC.com'# 查找FishC是否在I love FishC.com中c = re.search(r'FishC', string)print(c)# <re.Match object; span=(7, 12), match='FishC 阅读全文

posted @ 2018-11-08 08:44 天源 阅读(242) 评论(0) 推荐(0) 编辑

导航