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 天源 阅读(210) 评论(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 天源 阅读(186) 评论(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 天源 阅读(170) 评论(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 天源 阅读(288) 评论(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 天源 阅读(306) 评论(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 天源 阅读(249) 评论(0) 推荐(0)

导航