fo

不允许 ASSIGNMENT 语句中包含 FOR XML 子句。

谁都会走 提交于 2019-12-05 08:35:06
DECLARE @guidList NVARCHAR(max) SELECT @guidList=( CAST(OrderGUID AS nvarchar(max)) +',') FROM OrderWareHouse.dbo.OrderDetail FOR XML PATH('') 将XML Paht('')查询出来的结果赋值给@guidList 变量此时会出错:不允许 ASSIGNMENT 语句中包含 FOR XML 子句。 修改为: set @guidList=(SELECT (CAST(OrderGUID AS nvarchar(max)) +',') FROM OrderWareHouse.dbo.OrderDetail FOR XML PATH('')) PRINT @guidList DECLARE @guidList NVARCHAR(max) SELECT @guidList=( CAST(OrderGUID AS nvarchar(max)) +',') FROM OrderWareHouse.dbo.OrderDetail FOR XML PATH('') 将XML Paht('')查询出来的结果赋值给@guidList 变量此时会出错:不允许 ASSIGNMENT 语句中包含 FOR XML 子句。 修改为: set @guidList=(SELECT

[Python] Unofficial Windows Binaries for Python Extension Packages

人盡茶涼 提交于 2019-12-05 08:30:27
[Python] Unofficial Windows Binaries for Python Extension Packages 1. Unofficial Windows Binaries for Python Extension Packages 非官方的Python第三方库,提供基于Windows的二进制扩展包,由加州大学维护。 2. PyCrypto Prebuilt Python Binaries for Windows PyCrypto提供加密模块,Bottle-corker依赖于该模块。 1. Unofficial Windows Binaries for Python Extension Packages 非官方的Python第三方库,提供基于Windows的二进制扩展包,由加州大学维护。 2. PyCrypto Prebuilt Python Binaries for Windows PyCrypto提供加密模块,Bottle-corker依赖于该模块。 来源: https://www.cnblogs.com/risunlee/p/11915264.html

tensorflow 学习笔记(1) MNIST for beginners

时光怂恿深爱的人放手 提交于 2019-12-05 07:55:26
教程的第一部分主要讲的是mnist_softmax.py里面的代码: 首先是下载和读取mnist数据集,两行代码来实现: from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) A one-hot vector is a vector which is 0 in most dimensions, and 1 in asingle dimension. 第一行是导入input_data模块,该模块的代码: import tensorflow as tf from tensorflow.contrib.learn.python.learn.datasets.mnist import read_data_sets 发现其实没有直接的input_data.read_data_sets()函数,而是又导入了另一个模块,该模块名叫read_data_sets,找到这个文件,里面的代码是: def read_data_sets(train_dir, fake_data=False, one_hot=False, dtype=dtypes.float32, reshape=True, validation

记第一个问题——python文件无法写入数据

帅比萌擦擦* 提交于 2019-12-04 22:02:09
import getpass username = input("please input your name:") password = getpass.getpass("please input the password:") fo = open("homework01.txt","a+") print(username) print(password) fo.write(username) fo.write(password) fo_read = fo.read() print(fo_read) fo.close() Console: please input your name:Ansue please input the password:123456 Ansue 123456 .....hello也无法写入 来源: https://www.cnblogs.com/ansue-home/p/11886460.html

java.sql.SQLException: Access denied for user 'root'@'10.1.0.2' (using password: YES)

回眸只為那壹抹淺笑 提交于 2019-12-04 18:26:51
java.sql.SQLException: Access denied for user 'root'@'10.1.0.2' (using password: YES) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:835) at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:455) at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240) at com.mysql.cj.jdbc

CF1257E/F

喜欢而已 提交于 2019-12-04 13:19:53
E 给出三个序列共n个元素,每个元素值为1~n且不重 一次可以把一个元素换到另一个序列中,求最少操作次数使得三个序列(可为空)分别排序后并在一起为1~n顺序 题解 (伪)神仙题 随便dp,依次考虑每个数放在那里 由于要保证最终的顺序,所以放的序列的编号要单调 f[i][0/1/2],第i个放在0/1/2的最小操作数 code #include <algorithm> #include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #define fo(a,b,c) for (a=b; a<=c; a++) #define fd(a,b,c) for (a=b; a>=c; a--) #define min(a,b) (a<b?a:b) using namespace std; int a[200002]; int f[200002][3]; int n,n1,n2,n3,i,j,k,l,ans,Ans; int main() { // freopen("e.in","r",stdin); scanf("%d%d%d",&n1,&n2,&n3);n=n1+n2+n3; fo(i,1,n1) scanf("%d",&j),a[j]=0; fo(i,1,n2) scanf("%d",&j),a[j]

Docker 容器中配置nginx后报403 Forbidden 解决办法

旧时模样 提交于 2019-12-04 07:59:43
1、 Docker 挂载主机目录,访问相应的文件出现Premission denied的权限访问问题 问题原因及解决办法 原因是CentOS7中的安全模块selinux把权限禁掉了,主要是挂载的目录没有权限的问题 2、 添加selinux规则,改变要挂载的目录的安全性文本 chcon -Rt svirt_sandbox_file_t /home/hct/sample/ 来源: CSDN 作者: 椰汁菠萝 链接: https://blog.csdn.net/suo082407128/article/details/83348639

BMW ICOM A2 Diagnostic & Programming For BMW ICOM A2+B+C 2016.07 Engineers Version

自闭症网瘾萝莉.ら 提交于 2019-12-04 06:55:22
BMW ICOM A2+B+C is upgrade of BMW ICOM, ICOM A2 is Second generation of BMW ISTA Diagnose and programming system. Support both new and old BMW vehicles. BMW ICOM A2 : Software Version : 2016.07 ISTA/D (ISID /DiagnosticISTA-D 3.55.31 ISTA-P 3.59.0.600 VIN: 2016.06.15 BMW ICOM : 1. Support Multi-language: American English, British English, German, Spanish, French, Italian, Polish, Portuguese, Turkish, Czech, Swedish, Dutch, Indian, Greek, Russian, Japanese, Korean, Thai, Simplified Chinese and Traditional Chinese 2. Hardware Version: ICOM Application-01.40.05 3. Support Vehicles: BMW Cars, BMW

[Flutter + Firebase] Enable Firebase for Flutter

风流意气都作罢 提交于 2019-12-04 04:43:18
Anroid Firebase Project setup: 1. In firebase console, cerate a Android app setup you can find in code: Find "applicationId", undef "defaultConfig", put to website. 2. Click "Regsiter App" 3. Download google-services.json 4. Copy to android/app folder 5. Click "Next" to continue 6. Open "android/build.gradle": buildscript { repositories { google() // Add this line jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:4.3.2' // Add this line } } 7. Open "android/app/build.gradle": dependencies { testImplementation 'junit:junit:4.12

Comet OJ - Contest #14题解

99封情书 提交于 2019-12-04 01:42:47
Contest14的本质:区间覆盖+Tarjan( A 把距离公式两边平方即可 注意要long long code #include <algorithm> #include <iostream> #include <cstdlib> #include <cstring> #include <cstdio> #define fo(a,b,c) for (a=b; a<=c; a++) #define fd(a,b,c) for (a=b; a>=c; a--) using namespace std; int x[100001]; int y[100001]; int n,i,j,k,l,X,Y,R,ans; int main() { // freopen("a.in","r",stdin); scanf("%d%d%d%d",&n,&X,&Y,&R); fo(i,1,n) scanf("%d%d",&x[i],&y[i]); fo(i,1,n) if (((long long)(x[i]-X)*(x[i]-X)+(long long)(y[i]-Y)*(y[i]-Y))<=(long long)R*R) ++ans; printf("%d\n",ans); } B 显然p和k是位置最靠边的两个 考虑一下i和n的位置(靠左/靠右/左右) code 比较丑 #include