• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

jwang106


脚踏实地,日拱一卒。 建立新的神经链接,可不像公园散步那样简单。
  • 博客园
  • 联系
  • 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页

2019年8月10日

LOAD CSV ERROR: The used command is not allowed with this MySQL version

摘要: 要执行的sql 把csvload进db 把客户端和server端 local_infile 都设置为True/ON 阅读全文

posted @ 2019-08-10 08:20 jwang106 阅读(470) 评论(0) 推荐(0)

2019年8月9日

python singleton 4种单例

摘要: ``` def singleton(cls, *args, **kwargs): instances = {} def inner(cls, *args, **kwargs): if cls not in instances: instances[cls] = cls(*args, **kwargs) return instances[cls] return inner @singleton cl 阅读全文

posted @ 2019-08-09 20:36 jwang106 阅读(204) 评论(0) 推荐(0)

python 100day notes (1)

摘要: 1. x1 + x2 +x3 + x4 = 8 多少正整数解 上面的问题等同于将8个苹果分成四组每组至少一个苹果有多少种方案 即用三个隔板插7个空位。 答案C(7,3) =35 2. __name__是Python中一个隐含的变量它代表了模块的名字 只有被Python解释器直接执行的模块的名字才是_ 阅读全文

posted @ 2019-08-09 14:53 jwang106 阅读(186) 评论(0) 推荐(0)

2019年8月6日

markdown 表格

摘要: 1 name | 111 | 222 | 333 | 444 : : | : : | : : | : : | : : aaa | bbb | ccc | ddd | eee| fff | ggg| hhh | iii | 000| 2 | 表头 | 表头 | | | | | 单元格 | 单元格 | 阅读全文

posted @ 2019-08-06 20:10 jwang106 阅读(127) 评论(0) 推荐(0)

mac tree 中文乱码

摘要: ``` tree -N ``` 阅读全文

posted @ 2019-08-06 09:54 jwang106 阅读(235) 评论(0) 推荐(0)

2019年8月5日

爬虫 fake_useragent

摘要: ``` import requests from fake_useragent import UserAgent ua = UserAgent() headers = { "UserAgent": ua.random } song_name = 'test' res = requests.get(search_url, headers=headers) ``` 阅读全文

posted @ 2019-08-05 14:52 jwang106 阅读(137) 评论(0) 推荐(0)

pandas

摘要: Pandas提供了 DataFrame.describe 方法查看数据摘要 DataFrame.isnull() 方法查看数据表中哪些为空值,与它相反的方法是 DataFrame.notnull() df.dropna(axis=1, how='all') 经过测试,在 DataFrame.repl 阅读全文

posted @ 2019-08-05 10:39 jwang106 阅读(112) 评论(0) 推荐(0)

2019年8月3日

一些实战中的小技巧 (持续更新中)

摘要: 经常使用的目录或命令,使用alias,减少打字数量 配置常用字符串 阅读全文

posted @ 2019-08-03 09:24 jwang106 阅读(122) 评论(0) 推荐(0)

2019年8月1日

python eval

摘要: eval的作用是把字符串当作代码来执行 例子1: 需要根据字符串判断使用哪个class 比如:'Person' 这个字符串进来的时候,需要返回 Person的实例, 具体做法 例子2:处理字符串。 比如,在redis里拿到数据时,数据是字符串 阅读全文

posted @ 2019-08-01 10:33 jwang106 阅读(199) 评论(0) 推荐(0)

2019年7月31日

linux python3 venv 虚拟环境报错 [-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 2.

摘要: 解决办法: 先创建没有pip的虚拟环境,然后启动虚拟环境后,再安装pip 办法一: 亲测失败了。。。 办法二 阅读全文

posted @ 2019-07-31 10:47 jwang106 阅读(4833) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3