码迷,mamicode.com
首页 >  
搜索关键字:python paramiko threading    ( 137519个结果)
python项目_mysql数据库的使用
1.首先自己创建数据库 create database luffy default charset=utf8mb4; 2.为当前项目创建数据库用户 create user luffy_user identified by 'luffy'; grant all privileges on luffy. ...
分类:数据库   时间:2020-06-20 11:29:22    阅读次数:79
字典——python基础篇
字典是什么 字典是无序、可变的容器型数据类型,元素以键值对存储,以键获值。 什么时候用字典:需要保存多个数据,并需要对数据(多个数据的意义不同)进行区分。 字典是容器型数据类型,容器的标志{},多个元素用逗号隔开。 字典的元素都是键值对,以键获值。{key1:value1,key2:value2,. ...
分类:编程语言   时间:2020-06-20 11:14:24    阅读次数:62
python项目_添加异常处理
新建utils/exceptions.py from rest_framework.views import exception_handler from django.db import DatabaseError from rest_framework.response import Respo ...
分类:编程语言   时间:2020-06-20 11:11:43    阅读次数:75
3-7.python函数的基础调用之异常1(IndentationError: unindent does not match any outer indentation level)
代码: 结果: PS E:\30.Study\30.自动化测试\99.零基础入门 Python Web 自动化测试\10.seleniumCodePractice> & "C:/Program Files/Python38/python.exe" "e:/30.Study/30.自动化测试/99.零 ...
分类:编程语言   时间:2020-06-20 11:09:48    阅读次数:76
python应用 曲线拟合03
问题 有许多待拟合的曲线,需批量拟合。 解决 写一个类 1 # -*- coding: utf-8 -*- 2 """ 3 @author: kurrrr 4 """ 5 6 import numpy as np 7 import matplotlib.pyplot as plt 8 import ...
分类:编程语言   时间:2020-06-20 11:07:00    阅读次数:61
解决Error: Can't find Python executable "python", you can set the PYTHON env variable
在执行 yarn start时遇到问题, 最后一行提示 Run `npm rebuild node-sass` to download the binding for your current environment. 于是按提示操作 输入命令 npm rebuild node-sass 的时候有时 ...
分类:编程语言   时间:2020-06-20 11:06:29    阅读次数:118
unittest模块在linux报错: AttributeError: module 'unittest' has no attribute 'TestRunner'
一开始在windows下运行没有问题,但是在linux下运行却报如下错误: ? AttributeError: module 'unittest' has no attribute 'TestRunner', 在网上找了好多资料看了一下都提示存在与unittest模块同名的.py文件 但是我查了一点 ...
分类:系统相关   时间:2020-06-20 10:43:27    阅读次数:68
python项目_调整目录
1.调整目录 2.调整目录路径后 1. 需要在manage.py文件进行调整os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'luffyapi.settings.dev') 找到settings.dev2.在settings.dev 文件上增加几行代码 ...
分类:编程语言   时间:2020-06-20 10:39:45    阅读次数:51
python之 __getattr__、__getattr__、__getitem__、__setitem__ 使用
__getattr__内置使用点号获取实例属性属性如 s.name,自调用__getattr__ __setattr__设置类实例属性 如s.name='tom',自调用__setattr__ __getitem__ 使用[]获取实例属性 如s['name'],自调用__getitem__ __se ...
分类:编程语言   时间:2020-06-20 10:35:42    阅读次数:43
zipline
zipline 程序的整体运行逻辑: 一个回测框架至少应该包括回测环境的配置,回测的事件触发,回测的事件处理,回测循环这样的几个模块 使用conda安装zipline $ conda create -n env_zipline python=3.5 $ conda activate env_zipl ...
分类:其他好文   时间:2020-06-20 10:26:42    阅读次数:56
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!