上一页 1 ··· 45 46 47 48 49
摘要: Linux执行完命令之后默认会有一个返回值 # ls app backupconfig.json Doc manage.py __pycache__ settings.py # echo $? 0 错误对照表 "OS error code 1: Operation not permitted" "O 阅读全文
posted @ 2020-02-12 13:37 LeoShi2020 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: - 错误代码如下: pip install pyodbc Looking in indexes: http://172.16.1.250/repository/douban/simple Collecting pyodbc Downloading http://172.16.1.250/reposi 阅读全文
posted @ 2020-02-12 11:02 LeoShi2020 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Python 通过pyodbc 连接SQL Server 数据库驱动 安装环境 cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) 微软官网 https://docs.microsoft.com/zh-cn/sql/connect 阅读全文
posted @ 2020-02-12 10:53 LeoShi2020 阅读(4621) 评论(0) 推荐(0) 编辑
摘要: 方法一:Key Value 直接获取 databases = {1: 'Student', 2: 'School'} for k,v in databases.items(): print(k,v) 1 Student 2 School 方法二:通过循环Key获取Value databases = 阅读全文
posted @ 2020-02-12 10:50 LeoShi2020 阅读(9056) 评论(0) 推荐(0) 编辑
摘要: 用法:isinstance(变量,list) li = [1,2,3] print(type(li)) if isinstance(li,list): print("This is a List") <class 'list'> This is a List 阅读全文
posted @ 2020-02-12 10:42 LeoShi2020 阅读(10936) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49