摘要: 连接数据库: try { SqlConnection conn = new SqlConnection(); conn.ConnectionString = "Data Source = (local); Initial Catalog =manage; Integrated Security = 阅读全文
posted @ 2018-11-21 13:58 FuShare 阅读(411) 评论(0) 推荐(0) 编辑
摘要: def function(*args):print(args) 中*的作用:表示此时参数为一个元祖。 def function(**args):print(args)中**的作用:表示此时参数为一个字典。 如: 阅读全文
posted @ 2017-04-05 15:31 FuShare 阅读(391) 评论(0) 推荐(0) 编辑
摘要: filter(function,ls) 函数包括两个参数,分别是function和list。该函数根据function参数返回的结果是否为真来过滤list参数中的项,最后返回一个新列表. 如: map(function,ls): 函数接收两个参数,一个是函数,一个是序列,map将传入的函数依次作用到 阅读全文
posted @ 2017-03-31 17:28 FuShare 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 函数:len() 返回字符串、列表、字典、元组等长度。 语法:len(str) str:要计算的字符串、列表、字典、元组等 返回值:字符串、列表、字典、元组等元素的长度。 Test: 1:计算字符串的长度 2:计算数组的长度 3:计算字典的长度 阅读全文
posted @ 2017-03-31 16:36 FuShare 阅读(13990) 评论(0) 推荐(0) 编辑
摘要: 1. 介绍 用来计算特定范围内(包括连续的部分和初始值)所有元素的和,除此之外,还可以用指定的二进制操作来计算特定范围内的元素结果。其头文件在numeric中。 用次函数可以求和,构造前n项和的向量,乘积,构造前n项乘积的向量 2. 应用举例 #include <vector> #include < 阅读全文
posted @ 2017-01-14 21:34 FuShare 阅读(9334) 评论(0) 推荐(0) 编辑
摘要: C++ STD函数 inner_product是c++标准库封装的一个函数。 函数原型: 函数1: inner_product(beg1, end1, beg2, init) 函数2: inner_product(beg1, end1, beg2, init, BinOp1, BinOp2) 函数介 阅读全文
posted @ 2017-01-14 16:55 FuShare 阅读(4050) 评论(0) 推荐(1) 编辑
摘要: # Copyright (c) 2016, 付刘伟 (Liuwei Fu)# All rights reserved.# 转载请注明出处 Linux下安装搜狗输入法需要安装以下插件,当以下所有插件安装成功后,打开Fcitx configuration,选择搜狗输入法,默认第一位。 sudo apt- 阅读全文
posted @ 2017-01-14 10:58 FuShare 阅读(542) 评论(0) 推荐(0) 编辑
摘要: # Copyright (c) 2016, 付刘伟 (Liuwei Fu)# All rights reserved.# 转载请注明出处 1.Install The Eclipse,g++ Use The SynapTic Package Manager: Eclipse :you should s 阅读全文
posted @ 2016-12-22 17:50 FuShare 阅读(802) 评论(0) 推荐(0) 编辑
摘要: # Copyright (c) 2016, 付刘伟 (Liuwei Fu)# All rights reserved.# 转载请注明出处 1.Install The Java JDK Under The File usr We New a file call Java; e: Open Java : 阅读全文
posted @ 2016-10-11 10:57 FuShare 阅读(410) 评论(0) 推荐(0) 编辑