1.读取txt文件 read() 读取整个文件 readline() 读取一行数据 readlines() 读取所有行数据 # 读取文件 with(open("./webframe/test.txt", "r")) as user_file: data = user_file.readlines() ...
分类:
其他好文 时间:
2020-06-08 19:07:12
阅读次数:
71
参考文献: 1. Gilles Audemard,Laurent Simon: On the Glucose SAT Solver 一、对学习自己作用的认识 The first answer was just abouttrying to contain the combinatorial expl ...
分类:
其他好文 时间:
2020-06-08 13:08:22
阅读次数:
87
You have an array of logs. Each log is a space delimited string of words. For each log, the first word in each log is an alphanumeric identifier. Then ...
分类:
其他好文 时间:
2020-06-08 12:55:59
阅读次数:
59
watch可以用来监听vue实例中data数据的变化,然后触发触发这个watch中的对应的function处理函数 eg: watch: { // 监听data中firstname数据的变化 firstname(newVal, oldVal) { // console.log("监听到了firstn ...
分类:
其他好文 时间:
2020-06-08 12:32:37
阅读次数:
78
本文参考内容主要有:1. https://gitee.com/all-about-git gitee2. https://www.liaoxuefeng.com/wiki/896043488029600 来自廖雪峰老师的git教程 一、在看命令之前先来了解下git的工作原理 / 流程: Worksp ...
分类:
其他好文 时间:
2020-06-08 00:33:14
阅读次数:
76
Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop o ...
分类:
其他好文 时间:
2020-06-08 00:29:09
阅读次数:
53
''' these are comments my first py prog ''' print("math copute: \n") a=2 b=3 c=a+bd=a**b #### " " 里面原样输出, 多个输出 用 , ############# print("a =",a,", b =" ...
分类:
其他好文 时间:
2020-06-07 21:38:48
阅读次数:
88
六月箴言 走好选择的路,别选择好走的路,你才能拥有真正的自己。—— 杨绛 第八章 封装算法 定义模版方法模式: 1、在一个方法中定义一个算法的骨架,而将一些步骤延迟到子类中。 2、模版方法使得子类可以在不改变算法结构的情况下,重新定义算法中的某些步骤。 设计原则:好莱坞原则 别调用(打电话给)我们, ...
分类:
其他好文 时间:
2020-06-07 21:04:10
阅读次数:
60
题目链接 D: 看样例+分析得知,假设现在要选$i$个,那么能达到的最大的值就是$sum_=\sum^$, 最小值就是$sum=\sum^$,那么每次可选择的数量就是$sum_1-sum_2+1$,那么答案就为$\sum^{n+1}({sum_-sum_ + 1})$ #include<bits/s ...
分类:
其他好文 时间:
2020-06-07 19:30:37
阅读次数:
61
转自https://www.cnblogs.com/goodlucklzq/p/4538500.html ForeignKey 按照约定在Post类中看到BlogId属性,会认为是Blog类的外键,但是在Blog类中并没有BlogId属性,解决方法是,在 Post 中创建一个导航属性,并使用 For ...
分类:
其他好文 时间:
2020-06-07 15:11:53
阅读次数:
70