随笔分类 -  python

摘要:import mysql.connectorclass mydb(): def __init__(self): self.connection = mysql.connector.connect( host="localhost", # 数据库主机地址 user="root", # 数据库用户名 p 阅读全文
posted @ 2020-11-28 22:45 wxdr 阅读(160) 评论(0) 推荐(0)
摘要:import requestsurl = "https://www.baidu.com/sugrec"params = { 'prod':'pc_his', 'from':'pc_web', 'json':1, 'sid':'1426_33102_33058_31253_32706_33098_33 阅读全文
posted @ 2020-11-14 22:38 wxdr 阅读(274) 评论(0) 推荐(0)
摘要:print('hello python world') message = 'hello python world second' print(message) #变量的命名可以是字母数字下划线, 以字母或下划线开头,不能以数字开头。不能用特殊的字符。message = 'hello python 阅读全文
posted @ 2020-09-22 22:59 wxdr 阅读(108) 评论(0) 推荐(0)