![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
youshang520i
不忘初心,方得始终
展开
-
Python的基本数据类型(list,set,tuple,Dictionary)
1.list的使用items = ["张三","李四","王五","赵六","陈七","王八"];# print(items);#下标的使用操作# print(items[:]);# print(items[0:5]);#包前不包后,用后面的减去前面的就可以得到需要获取的内容为几个# print(items[::-1]);#实现反转# print(items[0] =原创 2018-09-21 13:58:15 · 256 阅读 · 0 评论 -
python3.0连接mysql数据库的报错
1.连接代码import pymysql as py#连接数据库con=py.connect(host='192.168.**.***', user='root', passwd='youshang520i', db='mybatis',charset='utf8',port=3306)#获取游标cursor=con.cursor()#查询单个# querySql="sele...原创 2018-10-12 11:33:32 · 549 阅读 · 0 评论 -
Python图形化界面
import tkinter as tkfrom tkinter import ttkfrom Include.top.youshang520i.dao.studentDao import studentDao as stuDaofrom Include.top.youshang520i.pojo.Studnet import Student as sturoot=tk.Tk()roo...原创 2018-10-25 11:46:21 · 4035 阅读 · 2 评论 -
Python使用pucharm的引用包
进入pip引用 哦了原创 2018-10-24 16:51:59 · 312 阅读 · 0 评论 -
Python3.6简单的使用爬虫
import urllib.request as pyurl #引用python3.0的网页驱动import re #导入py正则验证器import timepath = 'http://www.****.com/nvshen/'saveLocalPath = 'D:\\PythonGetImages\\';#本地保存路径路径perfix = 'http://www.****.co...原创 2018-11-08 09:12:50 · 500 阅读 · 0 评论