2019年9月27日
摘要: import requestsimport jsondef main(key=""): header = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like 阅读全文
posted @ 2019-09-27 08:13 茂阴天才 阅读(119) 评论(0) 推荐(0)
  2019年9月26日
摘要: '''爬取豆瓣电影TOP250第一页:https://movie.douban.com/top250?start=0&filter=第二页:https://movie.douban.com/top250?start=25&filter='''import requestsimport re#拼接电影 阅读全文
posted @ 2019-09-26 00:44 茂阴天才 阅读(102) 评论(0) 推荐(0)
摘要: # print(list1)list1 = str2.split(':')print(list1)# lower&upper 大小写str3 = 'aabbCC'#把str3的字母都变成小写lower_str3 = str3.lower()print(lower_str3)#把str3都变成大写up 阅读全文
posted @ 2019-09-26 00:10 茂阴天才 阅读(96) 评论(0) 推荐(0)
  2019年9月25日
摘要: import time str1 = '很帅' print('高飞龙%s' %(str1,)) price1 = input('请输入该用户当月扣费月租:') all = input('请输入该用户当前余额:') print('亲爱的移动用户,您当月月租为[%s]元,账户余额为[%s]元!' % (price1,all)) username=input('请输入用户名:') print(usern 阅读全文
posted @ 2019-09-25 00:19 茂阴天才 阅读(96) 评论(0) 推荐(0)
  2019年9月24日
摘要: 计算机的五大组成部分: 1 CPU: 控制 + 运算 (相当于人类的大脑) 2内存: 存储设备,用于临时存储数据。通电数据存在,断电数据丢失。 3硬盘(外存): 用于永久保存数据,断电不会丢失。 4 输入设备: 键盘、鼠标... 5输出设备: 显示器、音响 阅读全文
posted @ 2019-09-24 00:20 茂阴天才 阅读(96) 评论(0) 推荐(0)
摘要: print('安徽财贸学院很厉害')# 定义变量:# name:变量名# =: 用于绑定变量名与变量值# '高飞龙': 变量的值name = '高飞龙'age = 19sex = 'female'# 调用变量print(name, age, sex)'''python8大数据类型: - 整型(整数) 阅读全文
posted @ 2019-09-24 00:14 茂阴天才 阅读(153) 评论(0) 推荐(0)