摘要:
小结: 1、 +=修改旧变量地址的内容;=创建新增内存地址; 1、 id cpy 内存地址 id(object) 2、赋值语句的原理 不复制对象,而是建立目标和对象的绑定。 Assignment statements in Python do not copy objects, they creat
阅读全文
posted @ 2018-04-30 17:12
papering
阅读(1031)
推荐(0)
摘要:
总的字段数、字段名确定,但是每行数据可能 缺失某些字段
阅读全文
posted @ 2018-04-30 15:30
papering
阅读(372)
推荐(0)
摘要:
linux下统计文本行数的各种方法(一) - Mikasama - 博客园 https://www.cnblogs.com/mikasama/p/8032389.html sas@DESKTOP-RVB6E5F MINGW64 ~/PycharmProjects/py_win_to_unix/sci
阅读全文
posted @ 2018-04-30 09:45
papering
阅读(351)
推荐(0)
posted @ 2018-04-30 09:08
papering
阅读(190)
推荐(0)
摘要:
package zip import ( "archive/zip" "io" "os" ) func f() { var Zip func(filePath []string, Result string) error Zip = func(filePath []string, Result st
阅读全文
posted @ 2018-04-29 21:48
papering
阅读(300)
推荐(0)
摘要:
视频边合成 边传送 视频的创建时间 大小 过滤 ‘’
阅读全文
posted @ 2018-04-28 19:23
papering
阅读(305)
推荐(0)
posted @ 2018-04-28 18:37
papering
阅读(246)
推荐(0)
摘要:
mp3_l_l = [i for i in mp3_l]mp3_l = mp3_l_l
阅读全文
posted @ 2018-04-28 16:38
papering
阅读(151)
推荐(0)
摘要:
except Exception as e: l = [str(i) for i in [dbid, f_mp3, e]] log_s = '||'.join(l) logging.exception(log_s) print(log_s)
阅读全文
posted @ 2018-04-28 16:03
papering
阅读(235)
推荐(0)
摘要:
Traceback (most recent call last): File "/data/xiaole_dl_img/product.v.one.banner.fixedperiod.genv.test.py", line 218, in <module> import cv2 File "/r
阅读全文
posted @ 2018-04-28 14:46
papering
阅读(1162)
推荐(0)
摘要:
[len(i) for i in [banners_uid_set,logos_uid_set,banners_uid_set&logos_uid_set]]
阅读全文
posted @ 2018-04-28 13:21
papering
阅读(274)
推荐(0)
posted @ 2018-04-28 11:23
papering
阅读(268)
推荐(0)
摘要:
环境准备 图文素材到位、声音到位、批量合成 。。。。 各个 模块 剥离 代码拆开 无限循环 对批量视频的尽可能短时间生成
阅读全文
posted @ 2018-04-28 10:34
papering
阅读(1515)
推荐(0)
摘要:
df.to_dict() pandas.DataFrame — pandas 0.22.0 documentation http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html 取出某个轴的index te
阅读全文
posted @ 2018-04-27 20:28
papering
阅读(174)
推荐(0)
摘要:
An Example of a DNNClassifier for the Iris dataset. models/premade_estimator.py at master · tensorflow/models · GitHub https://github.com/tensorflow/m
阅读全文
posted @ 2018-04-27 19:24
papering
阅读(322)
推荐(0)
摘要:
传入oss后 或者 本地 拖动到 浏览器 谷歌 都不能播放 Edge 可以播放 但 Edge不支持 本地拖入 播放 搜狗浏览器 同谷歌
阅读全文
posted @ 2018-04-27 17:44
papering
阅读(530)
推荐(0)
摘要:
UnicodeEncodeError:'latin-1' codec can't encode character
阅读全文
posted @ 2018-04-27 17:33
papering
阅读(274)
推荐(0)
摘要:
ls -lR|grep "_5.mp4"|wc -l
阅读全文
posted @ 2018-04-27 14:40
papering
阅读(210)
推荐(0)
摘要:
the largest value you actually can transmit between the client and server is determined by the amount of available memory and the size of the communic
阅读全文
posted @ 2018-04-27 12:14
papering
阅读(169)
推荐(0)
摘要:
2. Built-in Functions — Python 3.6.5 documentation https://docs.python.org/3.6/library/functions.html#id python 赋值 相等判定
阅读全文
posted @ 2018-04-26 21:30
papering
阅读(174)
推荐(0)
摘要:
用户特征包含以下特征组(feature_group_name),如果具体特征取值未知,均 以 0 表示: • 年龄(age):分段表示,每个序号表示一个年龄分段 • 性别(gender):男 / 女 • 学历(education):博士 / 硕士 / 本科 / 高中 / 初中 / 小学 • 消费能力(consumptionAbility):高 / 低 • 地理位置(LBS):每个序号代表...
阅读全文
posted @ 2018-04-26 21:01
papering
阅读(526)
推荐(0)
摘要:
一款适合各个年龄段的产品:定向投放广告的切入点 适合于各个年龄段的维度,比如每天投放的时间 》如果一个维度全覆盖,则有效维度应该对该维度全覆盖 时间...no 食盐...no 氧气...ok
阅读全文
posted @ 2018-04-26 18:56
papering
阅读(203)
推荐(0)
摘要:
Keras Documentation https://keras.io/ You have just found Keras. Keras is a high-level neural networks API, written in Python and capable of running o
阅读全文
posted @ 2018-04-26 17:19
papering
阅读(152)
推荐(0)
摘要:
使用 LDA 挖掘的用户喜好主题
阅读全文
posted @ 2018-04-26 16:46
papering
阅读(233)
推荐(0)
摘要:
Lookalike的原理是基于某目标人群,从海量的其他人群中找出和目标人群相似的人群,以拓展目标人群规模。在实际广告业务应用场景中,Lookalike能基于广告主已有的消费者,找出和已有消费者相似的潜在消费者,以此有效帮助广告主挖掘新客、拓展业务。目前,腾讯社交广告Lookailke相似人群拓展已集
阅读全文
posted @ 2018-04-26 16:40
papering
阅读(827)
推荐(0)
摘要:
借助ltp 逐步程序化实现规则库 文本生成引擎基于规则库和业务词库 去生成文本 - xl0808tx - 博客园 http://www.cnblogs.com/yuanjiangw/p/8043877.html 机器学习新手使用入门 | TensorFlow https://tensorflow.g
阅读全文
posted @ 2018-04-26 16:11
papering
阅读(388)
推荐(0)
摘要:
视频特效 FFmpeg Filters Documentation http://www.ffmpeg.org/ffmpeg-filters.html#drawtext-1 ffmpeg 滤镜及其效果 - CSDN博客 https://blog.csdn.net/dangxw_/article/de
阅读全文
posted @ 2018-04-26 15:33
papering
阅读(164)
推荐(0)
摘要:
90% 1.65 <class 'list'>: [1.6400000000000006, 0.8989948330517928, 6.786100643460162e-14] <class 'list'>: [1.6500000000000006, 0.9010570639327039, 8.07
阅读全文
posted @ 2018-04-26 14:47
papering
阅读(5014)
推荐(0)
摘要:
当总体服从正太分布或总体不是正太分布但为大样本时,样本均值的抽样分布为正态分布
阅读全文
posted @ 2018-04-25 23:10
papering
阅读(171)
推荐(0)
摘要:
gevent GitHub - gevent/gevent: Coroutine-based concurrency library for Python https://github.com/gevent/gevent gevent - 廖雪峰的官方网站 https://www.liaoxuefe
阅读全文
posted @ 2018-04-25 21:46
papering
阅读(243)
推荐(0)
摘要:
【要解决的问题】 判断微信群聊天中的视频的拍摄机型 手机 帧宽度 照片 宽度 帧大小与帧长度 - CSDN博客 https://blog.csdn.net/zy_whatafuck/article/details/79459772 结论: 1、总比特率=数据速率(图像)+ 音频比特率 +1 2、同一
阅读全文
posted @ 2018-04-25 20:34
papering
阅读(936)
推荐(0)
摘要:
即时通讯协议(Instant Messaging),即时消息和表示协议IMPP(Instant Messaging And PresenceProtocol),表示和即时消息协议PRIM(Presence and Instant Messaging Protocol),SIP即时消息和表示扩展协议S
阅读全文
posted @ 2018-04-25 19:36
papering
阅读(553)
推荐(0)
posted @ 2018-04-25 15:04
papering
阅读(317)
推荐(0)
摘要:
s = '推荐 252阅读 14评论 0涨粉 0转发 0收藏 0' # 3.5万 for i in range(len(s) - 1): sub_ = s[i:i + 1] try: t = int(sub_) except Exception as e: s = s.replace(sub_, 'X') prin...
阅读全文
posted @ 2018-04-25 14:27
papering
阅读(228)
推荐(0)
摘要:
s = ''' 赠汪伦 唐代:李白 李白乘舟将欲行,忽闻岸上踏歌声。 桃花潭水深千尺,不及汪伦送我情。 ''' old_rows_l = s.split('\n') new_cols_num = len(old_rows_l) new_rows_num = max([len(i.replace(' ', '')) for i in old_rows_l]) l_l = [] new...
阅读全文
posted @ 2018-04-25 13:33
papering
阅读(275)
推荐(0)
posted @ 2018-04-25 11:20
papering
阅读(678)
推荐(0)
摘要:
python beautifulsoup获取特定html源码 - 吴悟无 - 博客园 https://www.cnblogs.com/vickey-wu/p/6843411.html PyQuery库的使用 - CSDN博客 https://blog.csdn.net/qw_xingzhe/arti
阅读全文
posted @ 2018-04-25 09:06
papering
阅读(656)
推荐(0)
posted @ 2018-04-25 08:31
papering
阅读(640)
推荐(0)
摘要:
from selenium import webdriver import os import time import pymysql from bs4 import BeautifulSoup import requests import threading from selenium.webdriver.common.keys import Keys h, pt, u, p, db =...
阅读全文
posted @ 2018-04-25 04:23
papering
阅读(375)
推荐(0)
摘要:
from selenium import webdriver import time import random from bs4 import * browser = webdriver.Chrome() url = 'https://so.gushiwen.org/shiwenv_ee16df5673bc.aspx' browser.get(url) ck_l_ori_len = l...
阅读全文
posted @ 2018-04-24 20:43
papering
阅读(1584)
推荐(0)