会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Flynn丶傅
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2018年1月31日
day7-Python学习笔记(十五)网络编程
摘要: import urllib.requestimport json,requests#发送get请求# url = 'http://api.nnzhp.cn/api/user/stu_info?stu_name=小黑马'# req = requests.get(url) #发送get请求# print
阅读全文
posted @ 2018-01-31 22:06 Flynn丶傅
阅读(154)
评论(0)
推荐(0)
2018年1月26日
day6-Python学习笔记(十四)接口开发
摘要: import flask,jsonfrom tools123 import op_mysql #op_mysql()#import tools # tools123.op_mysql 这种方式也可以调用函数# 接口,后台服务server = flask.Flask(__name__) #把咱们这个a
阅读全文
posted @ 2018-01-26 23:15 Flynn丶傅
阅读(189)
评论(0)
推荐(0)
2018年1月25日
day6-Python学习笔记(十三)redis数据库
摘要: import redisr = redis.Redis(host='211.149.218.16',port=6379,password='123456',db=2)#连上redisprint(r.get('hahahsfdfsdf'))#r.set('nhy_session','201801211
阅读全文
posted @ 2018-01-25 21:50 Flynn丶傅
阅读(135)
评论(0)
推荐(0)
2018年1月24日
day6-Python学习笔记(十二)mysql操作,sql注入,批量执行sql
摘要: import pymysql# pyoracle# 1、连接上mysql ip 端口号 密码 账号 数据库# 2、建立游标# 3、执行sql# 4、获取结果# 5、关闭连接、关闭游标#打开仓库大门conn = pymysql.connect(host='211.149.218.16', user='
阅读全文
posted @ 2018-01-24 23:34 Flynn丶傅
阅读(263)
评论(0)
推荐(0)
2018年1月22日
day5-Python学习笔记(十一)random模块,时间模块,加密模块
摘要: import random,string# print(random.randint(1,199))#1-199随机取一个整数# print(string.digits) #所有的数字0-9# print(string.ascii_lowercase) #所有的小写字母# print(string.
阅读全文
posted @ 2018-01-22 23:15 Flynn丶傅
阅读(153)
评论(0)
推荐(0)
2018年1月20日
day5-Python学习笔记(十)常用模块os,sys
摘要: import os这些必须会 print(os.getcwd())#取当前工作目录# print(os.mkdir("test1")) # 创建文件夹# print(os.remove("../day4/5.png")) # 删除文件,不能删文件夹。# print(os.listdir('c://'
阅读全文
posted @ 2018-01-20 23:10 Flynn丶傅
阅读(165)
评论(0)
推荐(0)
day5-Python学习笔记(九)json数据类型
摘要: import json#json串就是字符串。d = { 'car':{'color':'red','price':100,'count':50}, '挨粪叉':{'color':'red','price':100,'count':50}, '挨粪叉1':{'color':'red','price'
阅读全文
posted @ 2018-01-20 22:48 Flynn丶傅
阅读(199)
评论(0)
推荐(0)
day5-Python学习笔记(八)内置函数
摘要: #函数即变量# len type print input str# print(all([1, 2, 3, 4])) # 判断可迭代的对象里面的值是否都为真# print(any([0, 1, 2, 3, 4])) # 判断可迭代的对象里面的值是否有一个为真# print(bin(100)) # 十
阅读全文
posted @ 2018-01-20 21:30 Flynn丶傅
阅读(143)
评论(0)
推荐(0)
day4-Python学习笔记(七)函数与模块
摘要: #函数 方法 功能#说白了函数就是把一堆代码组合到一起,变成一个整体#提高代码复用性#函数不调用不会被执行#全局变量、局部变量# def hello (file_name,content=''):#形参,形式参数# f = open(file_name,'a+',encoding='utf-8')#
阅读全文
posted @ 2018-01-20 15:53 Flynn丶傅
阅读(187)
评论(0)
推荐(0)
2018年1月11日
day4-Python学习笔记(六)监控日志,集合数据类型
摘要: 监控日志,【集合】数据类型,对集合进行操作 监控日志脚本
阅读全文
posted @ 2018-01-11 22:42 Flynn丶傅
阅读(205)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告