import jsonpath = r"H:\weibo\4\sdc-907869a8-212f-11e8-9a3e-ab0426199701_77a6516b-4816-40cf-beaf-cc5d31f07e41" #:文件位置file = open(path, 'r', encoding='u ...
分类:
Web程序 时间:
2020-07-25 10:00:46
阅读次数:
134
PyCharm设置代码模板:自动生成文件名、作者、创建日期等信息避免每次新建项目文件时添加注释文件名、作者、创建日期等信息,则可以设置较好的代码模板,在创建文件时自动生成相关信息。设置步骤:打开PyCharm,选择File --> Settings --> Editor --> Code Style ...
分类:
其他好文 时间:
2020-07-25 09:58:31
阅读次数:
83
一、常量和C预处理器 1.符号常量(symbolic constant) 编译程序的时候程序中的符号常量都会被实际字面量所替换,这一过程称为编译时替换 格式:末尾不加分号,中间不加等号,字面量可以是数字,字符,字符串等 #define CHANGLIANGNAME 890 2.const限定符 C9 ...
分类:
其他好文 时间:
2020-07-25 09:28:02
阅读次数:
64
webworker计算md5实践及遇到的坑最近项目要实现大文件的分块上传及断点续传,其中文件的md5是判断文件或文件块是否已被上传的重要依据。1.阶段一编码初期,直接在公共方法中写了一个传入file返回md5的函数,供文件上传模块使用。关键代码如下:/***获取文件的md5*@param{*}file文件对象*/importSparkMD5from‘spark-md5‘exportasyncfun
分类:
Web程序 时间:
2020-07-24 23:48:21
阅读次数:
117
问题: An error occured while deploying the file. This probably means that the app contains ARM native code and your Genymotion device cannot run ARM ins ...
分类:
移动开发 时间:
2020-07-24 22:03:36
阅读次数:
160
在win10电脑里,先安装了python3.6.3,再装Anaconda3,再安装tensorflow1.4.0环境,最后在pycharm上也安装了tensorflow库 ...
分类:
其他好文 时间:
2020-07-24 21:48:29
阅读次数:
140
C:\Program Files (x86)\Jenkins\plugins\ruby-runtime\WEB-INF\lib\classes.jar: The process cannot access the file because it is being used by another pr ...
分类:
其他好文 时间:
2020-07-24 21:30:48
阅读次数:
197
1、打开file->plugins,搜索插件power mode Ⅱ,安装后重启编辑器。 2、打开file->settings就可以看到power mode Ⅱ,按需配置。 ...
分类:
Web程序 时间:
2020-07-24 21:27:47
阅读次数:
164
以上面的excel格式,输出字典类型: import xlrddef read_excel_data(): filename = 'E:\学历列表.xls' data = xlrd.open_workbook(filename) table = data.sheet_by_name('Sheet1' ...
分类:
编程语言 时间:
2020-07-24 21:25:57
阅读次数:
116
一、模块循环导入问题 run , m1, m2的循环导入 #run.py x=1 # import m1 # print(m1.x) # print(m1.y) # m1.f1() import m2 m2.f2() #m1.py print('正在导入m1') def f1(): from m2 ...
分类:
其他好文 时间:
2020-07-24 21:19:07
阅读次数:
64