Python
走向远方的路
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
输入底和高,输出面积
d=int(input(“请输入底边:\n”)) h=int(input(“请输入高:\n”)) print=(d*h/2)原创 2019-03-13 19:05:37 · 2083 阅读 · 0 评论 -
爬虫——爬取网站中的免费小说
导入包 爬虫:requests 和 正则:re import requests import re #输入网址 url=‘http://www.shuquge.com/txt/5809/index.html’ response=requests.get(url,) response.encoding=‘utf-8’ # 定义编码格式(或用gbk) print(response.text) #...原创 2019-05-10 20:13:47 · 1226 阅读 · 0 评论 -
求1-1000的因子数
#导入模块 import threading #创建一个字典 ,存放数字及因子 dict1={} list_num=0 max_count=0 #创建show方法 def show(): global list_num #全局变量 global max_count #全局变量 for i in range(1,1001): list1=[] count=0 print(‘数字’,i,‘的因子数...原创 2019-05-10 20:34:41 · 663 阅读 · 0 评论
分享