摘要:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>JS实现复制功能的方法 </title> </head> <script type="text/javascript"> function copyText(){ var te 阅读全文
摘要:
<html> <textarea name="" id="text" cols="40" rows="10"> 第一行:这里输入的数据将保存为txt中 第二行:保存为文件 </textarea> <button id="save" type="button">保存</button> <script> 阅读全文
摘要:
使用dangerouslySetInnerHTML const element = (<div dangerouslySetInnerHTML={{__html:"<h1>hello,this is react</h1>"}} />); ReactDOM.render( element, docum 阅读全文
摘要:
打开设备管理器 计算机——》管理——》设备管理器 将Preferred Band 值设置为2.2.4G first 阅读全文
摘要:
mysql> show variables like '%char%'; mysql> set character_set_client=utf8; 在任务管理器上查看mysql服务 重启mysql服务(以管理员身份) net stop mysql57 net start mysql57 阅读全文
摘要:
yum install gcc gcc-c++ -y gcc -v 阅读全文
摘要:
上下文管理器是一个对象,它定义了在执行 with 语句时要建立的运行时上下文。 上下文管理器处理进入和退出所需运行时上下文以执行代码块。 通常使用 with 语句(在 with 语句中描述),但是也可以通过直接调用它们的方法来使用。 上下文管理器是一个实现了__enter__、__exit__魔法方 阅读全文
摘要:
Counter:字典的子类,提供了可哈希对象的计数功能 defaultdict:字典的子类,提供了一个工厂函数,为字典查询提供了默认值 OrderedDict:字典的子类,保留了他们被添加的顺序 namedtuple:创建命名元组子类的工厂函数 deque:类似列表容器,实现了在两端快速添加(app 阅读全文
摘要:
添加新的一列 df = df.withColumn('col_name', F.lit(2)) new_col_name :是新的一列的名字 F.lit(2):是全部都为 2 的一列 按行合并两个datafeame(两个df必须要有相同的columns) df_concat = df1.union( 阅读全文
摘要:
#!/usr/bin/env python #-*- coding:utf-8 -*- from jinja2 import Template #content = open("test.tmpl",r,encoding="utf-8") content = """ {% for item in i 阅读全文