function:python基础语法练习""" #import this name = "tom"age = 29 str1 = "hello, " + name + "; age," + str(age)str2 = "hello, %s ; age, %d " %(name, age)str3 ...
分类:
编程语言 时间:
2019-12-15 11:06:52
阅读次数:
91
# 列表(list、数组)、元组、字典 list_ = ["a", "c", 1, 2] print(list_) # list_.append("c") # 末尾追加# list_[2] = "cc" # 替换/修改# list_.insert(1, "b") # 插入list_.remove(" ...
分类:
编程语言 时间:
2019-12-15 11:05:00
阅读次数:
86
摘自:https://www.jianshu.com/p/7c2b62c37223 摘自:https://www.jianshu.com/p/7c2b62c37223 1. 安装依赖 不要复制往下看 yum install openssl-devel bzip2-devel expat-devel ...
分类:
编程语言 时间:
2019-12-15 11:00:04
阅读次数:
128
摘自:https://blog.csdn.net/love_cjiajia/article/details/82254371 摘自:https://blog.csdn.net/love_cjiajia/article/details/82254371 摘自:https://blog.csdn.net ...
分类:
编程语言 时间:
2019-12-15 10:58:49
阅读次数:
124
from datetime import date """ __getattr__ : 在查找不到对象的属性时调用 __getattribute__ : 在查找属性之前调用(一般都不要覆写) 所以,访问的属性的调用顺序是: __getattribute__ > 对象属性 > __getattr__ ...
分类:
其他好文 时间:
2019-12-15 00:43:06
阅读次数:
98
之前跟着教程用brow安装了python3,后来发现电脑上有三个版本的python,头大。于是用brew uninstall --force python3卸掉了python3看到现在有两个版本安装python3的pip3curl https://bootstrap.pypa.io/get-pip.... ...
分类:
编程语言 时间:
2019-12-14 22:44:00
阅读次数:
843
1. os.getcwd();2. os.chdir();3. os.listdir();4. os.makedir();5. os.system();6. os.getenv();7. os 的一些值;8. os.path ...
分类:
编程语言 时间:
2019-12-14 21:19:58
阅读次数:
106
参考:https://blog.csdn.net/gzh00001/article/details/93331399 #!/user/bin/python3#coding=utf-8#2019/12/14 --17:21#author :huifrom airtest.core.api import ...
分类:
其他好文 时间:
2019-12-14 19:33:14
阅读次数:
165
plt_1 import pandas as pd unrate = pd.read_csv('unrate.csv') unrate['DATE'] = pd.to_datetime(unrate['DATE']) print(unrate.head(12)) ''' DATE VALUE 0 1 ...
分类:
其他好文 时间:
2019-12-14 19:23:34
阅读次数:
70
在使用 PyMySQL 之前,我们需要确保 PyMySQL 已安装。 PyMySQL 下载地址:https://github.com/PyMySQL/PyMySQL。 如果还未安装,我们可以使用以下命令安装最新版的 PyMySQL: $ pip3 install PyMySQL 如果你的系统不支持 ...
分类:
数据库 时间:
2019-12-14 19:22:28
阅读次数:
111