![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
Offyin
这个作者很懒,什么都没留下…
展开
-
python-中国大学排名情况代码
# _*_coding =utf-8 _*_ # coding = utf-8 # @Time : 2021/1/28 6:57 # @Author : Chunjun.Yin # @QQ : 408753851 # @FileName : HaoDaXue.py # @Software : PyCharm # url= https://www.shanghairanking.cn/rankings/bcur/2020 import bs4 import requests import re from bs原创 2021-01-30 07:58:12 · 779 阅读 · 0 评论 -
Python页面爬虫学习1-基础中的基础
import requests ''' re = requests.get("http://www.baidu.com") re.encoding = re.apparent_encoding re.status_code print(re.status_code) print(re.text) print(re.headers) print(re.apparent_encoding) print(re.content) ''' ''' 网页爬虫的通用代码框架 ''' def getHTMLText(url原创 2020-08-28 17:55:29 · 233 阅读 · 0 评论 -
阿拉伯数字转化为大写---Python学习2
Python 学习2 代码内容是将万以内的阿拉伯数字整数转化为大写 因为也是首次学习python的数据结构(组,字符串,字典等),不知道有没有精进的地方,有大佬的话,可以帮忙指点一下,便于后期优化学习, 非常感谢。 dict_num={"1":"壹","2":"贰","3":"叁","4":"肆","5":"伍","6":"陆","7":"柒","8":"捌","9":"玖"} dict_unit={0:"零",1:"拾",2:"佰",3:"仟",4:"万",5:"拾"} while True:原创 2020-08-13 22:42:09 · 369 阅读 · 0 评论 -
记录下自己学习Python内容1
Python 学习1记录下自己学习Python内容 记录下自己学习Python内容 代码内容是和电脑猜数字,三个骰子押大小 from random import choice myMonney = 100# 我的初始余额 pcMonney = 100# 电脑端的初始余额 while True: tempx =choice(range(1,7))+choice(range(1,7))+choice(range(1,7)) # 骰子的随机数 if myMonney == 0 or pcMon原创 2020-08-11 10:46:08 · 127 阅读 · 0 评论