方法介绍: 通过调用“Python.exe”程序,执行脚本文件。所以,本方式要求电脑上已经安装了Python,拥有程序Python.exe程序。 现在,有如下py脚本:Add.py import sys def Add(a,b): return a+b if __name__=='__main__' ...
分类:
编程语言 时间:
2021-02-08 12:22:54
阅读次数:
0
24. 两两交换链表中的节点 题目链接 直接换 class Solution { public ListNode swapPairs(ListNode head) { if(head == null) return null; if(head.next == null) return head; L ...
分类:
其他好文 时间:
2021-02-08 12:14:55
阅读次数:
0
本知识点对应手册:点击查看 模板渲染: view目录下新建子目录(名称对应控制器名),文件名(html)对应控制器下的方法名 return $this->fetch();//渲染当前模板 return $this->fetch('b');//渲染指定模板 //助手函数写法 return view() ...
分类:
Web程序 时间:
2021-02-08 12:09:54
阅读次数:
0
参考来源:Magnus Lie Hetland 《Python基础教程》 1. 自定义函数 def hello( name ): return 'Hello, ' + name + '!' 可以判断一个对象是不是函数: callable( hello ) 如果是函数,就会返回True,否则会返回Fa ...
分类:
编程语言 时间:
2021-02-08 12:06:02
阅读次数:
0
数据结构 C中整数之间的运算结果只会是整数 带小数点的数是浮点数 %d //是整数的参数 %f //是浮点数的参数 const int PLS=2.3; printf("%f",PLS); int定义整数变量,double定义双精度浮点数,float定义单精度浮点数 double ACD; scan ...
分类:
其他好文 时间:
2021-02-08 11:52:48
阅读次数:
0
class Solution { public: vector<vector<int>> threeSum(vector<int>& nums) { int n=nums.size(); vector<vector<int>>ans; if(n<3) return{}; sort(nums.begi ...
分类:
其他好文 时间:
2021-02-08 11:52:34
阅读次数:
0
class Solution { public: int f[1005][1005]; int longestCommonSubsequence(string text1, string text2) { memset(f,0,sizeof(f)); int n=text1.size(); int ...
分类:
其他好文 时间:
2021-02-08 11:51:48
阅读次数:
0
<! +++ title = "Bash语法" description = "" date = "2021 02 06" weight = 5 tags = [] categories = ["3 syntax"] keywords = [] +++ [TOC] 关于Bash Script的语法,包 ...
分类:
其他好文 时间:
2021-02-08 11:48:12
阅读次数:
0
回到顶部 一、全局配置文件 1、分类:(文件名固定) (1)application.properties(2)application.yml(3)以上两种文件作用类似,但是内部写法有些区别。 2、作用: 修改 SpringBoot 自动配置的默认值。 3、什么是yml YML文件格式是YAML (Y ...
分类:
编程语言 时间:
2021-02-08 11:44:58
阅读次数:
0
There are n gas stations along a circular route, where the amount of gas at the ith station is gas[i]. You have a car with an unlimited gas tank and i ...
分类:
其他好文 时间:
2021-02-08 11:44:08
阅读次数:
0