Tensorflow 源码构建 error executing command 错误 10C

Ubuntu 16.04 通过源码安装tensorflow GPU版本。执行如下命令时出错,请各位帮忙分析下。
OS:Linux aikou 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
GCC:gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5)
CUDA:9.0
cuDNN: 5.1.10

执行命令:
bazel build --copt=-march=native --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both ––verbose_failures --spawn_strategy=standalone --config=cuda //tensorflow/tools/pip_package:build_pip_package

错误提示:
ERROR: /home/kou/tensorflow/tensorflow/stream_executor/BUILD:52:1: C++ compilation of rule '//tensorflow/stream_executor:cuda_platform' failed (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command
(cd /home/kou/.cache/bazel/_bazel_kou/3f3a4712723b62ae321569eb62995c39/execroot/org_tensorflow && \
exec env - \
LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:/usr/local/cuda/extras/CUPTI/lib64 \
PATH=/home/kou/anaconda3/bin:/home/kou/bin:/home/kou/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda-9.0/bin \
PWD=/proc/self/cwd \
external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++11' -g0 -MD -MF bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.d '-frandom-seed=bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.o' -fPIC -DEIGEN_MPL2_ONLY -DTENSORFLOW_USE_JEMALLOC -DTF_USE_SNAPPY -iquote . -iquote bazel-out/host/genfiles -iquote external/nsync -iquote bazel-out/host/genfiles/external/nsync -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -iquote external/jemalloc -iquote bazel-out/host/genfiles/external/jemalloc -iquote external/eigen_archive -iquote bazel-out/host/genfiles/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/host/genfiles/external/local_config_sycl -iquote external/gif_archive -iquote bazel-out/host/genfiles/external/gif_archive -iquote external/jpeg -iquote bazel-out/host/genfiles/external/jpeg -iquote external/protobuf_archive -iquote bazel-out/host/genfiles/external/protobuf_archive -iquote external/com_googlesource_code_re2 -iquote bazel-out/host/genfiles/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/host/genfiles/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/host/genfiles/external/fft2d -iquote external/highwayhash -iquote bazel-out/host/genfiles/external/highwayhash -iquote external/png_archive -iquote bazel-out/host/genfiles/external/png_archive -iquote external/zlib_archive -iquote bazel-out/host/genfiles/external/zlib_archive -iquote external/local_config_cuda -iquote bazel-out/host/genfiles/external/local_config_cuda -isystem external/nsync/public -isystem bazel-out/host/genfiles/external/nsync/public -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/jemalloc/include -isystem bazel-out/host/genfiles/external/jemalloc/include -isystem external/eigen_archive -isystem bazel-out/host/genfiles/external/eigen_archive -isystem external/gif_archive/lib -isystem bazel-out/host/genfiles/external/gif_archive/lib -isystem external/protobuf_archive/src -isystem bazel-out/host/genfiles/external/protobuf_archive/src -isystem external/farmhash_archive/src -isystem bazel-out/host/genfiles/external/farmhash_archive/src -isystem external/png_archive -isystem bazel-out/host/genfiles/external/png_archive -isystem external/zlib_archive -isystem bazel-out/host/genfiles/external/zlib_archive -isystem external/local_config_cuda/cuda -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda -isystem external/local_config_cuda/cuda/cuda/include -isystem bazel-out/host/genfiles/external/local_config_cuda/cuda/cuda/include -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -fno-canonical-system-headers -c tensorflow/stream_executor/cuda/cuda_dnn.cc -o bazel-out/host/bin/tensorflow/stream_executor/_objs/cuda_platform/tensorflow/stream_executor/cuda/cuda_dnn.pic.o)

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
oracle dg复制备库约到如下错误
连接主备库 rman target sys/oracle@fc91 auxiliary sys/oracle@fc94 执行脚本: run{ allocate channel c1 type disk; allocate channel c2 type disk; allocate channel c3 type disk; allocate AUXILIARY channel c4 type disk; allocate AUXILIARY channel c5 type disk; allocate AUXILIARY channel c6 type disk; DUPLICATE TARGET DATABASE FOR STANDBY FROM ACTIVE DATABASE DORECOVER NOFILENAMECHECK; release channel c1; release channel c2; release channel c3; release channel c4; release channel c5; release channel c6; } Recovery Manager: Release 19.0.0.0.0 - Production on Tue Jan 21 16:23:00 2020 Version 19.3.0.0.0 Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved. connected to target database: FC91 (DBID=2505363336) connected to auxiliary database: FC91 (DBID=2505363336, not open) RMAN> 现在日志如下: using target database control file instead of recovery catalog allocated channel: c1 channel c1: SID=729 device type=DISK allocated channel: c2 channel c2: SID=1094 device type=DISK allocated channel: c3 channel c3: SID=609 device type=DISK allocated channel: c4 channel c4: SID=1212 device type=DISK allocated channel: c5 channel c5: SID=1333 device type=DISK allocated channel: c6 channel c6: SID=1454 device type=DISK Starting Duplicate Db at 21-JAN-20 contents of Memory Script: { backup as copy reuse passwordfile auxiliary format '/opt/oracle/product/19c/dbhome_1/dbs/orapwFC94' ; } executing Memory Script Starting backup at 21-JAN-20 Finished backup at 21-JAN-20 contents of Memory Script: { restore clone from service 'fc91' standby controlfile; } executing Memory Script Starting restore at 21-JAN-20 channel c4: starting datafile backup set restore channel c4: using network backup set from service fc91 channel c4: restoring control file channel c4: restore complete, elapsed time: 00:00:01 output file name=/opt/oracle/oradata/FC94/control01.ctl output file name=/opt/oracle/oradata/FC94/control02.ctl Finished restore at 21-JAN-20 contents of Memory Script: { sql clone 'alter database mount standby database'; } executing Memory Script sql statement: alter database mount standby database contents of Memory Script: { set newname for tempfile 1 to "/opt/oracle/oradata/FC94/temp01.dbf"; set newname for tempfile 2 to "/opt/oracle/oradata/FC94/pdbseed/temp012020-01-21_11-02-57-925-AM.dbf"; set newname for tempfile 3 to "/opt/oracle/oradata/FC94/ORCLPDB1/temp01.dbf"; switch clone tempfile all; set newname for datafile 1 to "/opt/oracle/oradata/FC94/system01.dbf"; set newname for datafile 3 to "/opt/oracle/oradata/FC94/sysaux01.dbf"; set newname for datafile 4 to "/opt/oracle/oradata/FC94/undotbs01.dbf"; set newname for datafile 5 to "/opt/oracle/oradata/FC94/pdbseed/system01.dbf"; set newname for datafile 6 to "/opt/oracle/oradata/FC94/pdbseed/sysaux01.dbf"; set newname for datafile 7 to "/opt/oracle/oradata/FC94/users01.dbf"; set newname for datafile 8 to "/opt/oracle/oradata/FC94/pdbseed/undotbs01.dbf"; set newname for datafile 9 to "/opt/oracle/oradata/FC94/ORCLPDB1/system01.dbf"; set newname for datafile 10 to "/opt/oracle/oradata/FC94/ORCLPDB1/sysaux01.dbf"; set newname for datafile 11 to "/opt/oracle/oradata/FC94/ORCLPDB1/undotbs01.dbf"; set newname for datafile 12 to "/opt/oracle/oradata/FC94/ORCLPDB1/users01.dbf"; restore from nonsparse from service 'fc91' clone database ; sql 'alter system archive log current'; } executing Memory Script executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME renamed tempfile 1 to /opt/oracle/oradata/FC94/temp01.dbf in control file renamed tempfile 2 to /opt/oracle/oradata/FC94/pdbseed/temp012020-01-21_11-02-57-925-AM.dbf in control file renamed tempfile 3 to /opt/oracle/oradata/FC94/ORCLPDB1/temp01.dbf in control file executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME executing command: SET NEWNAME Starting restore at 21-JAN-20 channel c4: starting datafile backup set restore channel c4: using network backup set from service fc91 channel c4: specifying datafile(s) to restore from backup set channel c4: restoring datafile 00001 to /opt/oracle/oradata/FC94/system01.dbf released channel: c1 released channel: c2 released channel: c3 released channel: c4 released channel: c5 released channel: c6 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 01/21/2020 16:12:58 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script ORA-19845: error in backupDataFile while communicating with remote database server ORA-17628: Oracle error 19602 returned by remote Oracle server ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode ORA-19660: some files in the backup set could not be verified ORA-19661: datafile 1 could not be verified ORA-19845: error in backupDataFile while communicating with remote database server ORA-17628: Oracle error 19602 returned by remote Oracle server ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode
Top Spinning 旋转的问题
Problem Description Spinning tops are one of the most popular and the most traditional toys. Not only spinning them, but also making one’s own is a popular enjoyment. One of the easiest way to make a top is to cut out a certain shape from a cardboard and pierce an axis stick through its center of mass. Professionally made tops usually have three dimensional shapes, but in this problem we consider only two dimensional ones. Usually, tops have rotationally symmetric shapes, such as a circle, a rectangle (with 2-fold rotational symmetry) or a regular triangle (with 3-fold symmetry). Although such symmetries are useful in determining their centers of mass, they are not definitely required; an asymmetric top also spins quite well if its axis is properly pierced at the center of mass. When a shape of a top is given as a path to cut it out from a cardboard of uniform thickness, your task is to find its center of mass to make it spin well. Also, you have to determine whether the center of mass is on the part of the cardboard cut out. If not, you cannot pierce the axis stick, of course. Java Spicific : Submitted Java programs may not use classes implementing the interface “java.awt.Shape”. You may use them for your debugging purposes. Input The input consists of multiple datasets, each of which describes a counterclockwise path on a cardboard to cut out a top. A path is indicated by a sequence of command lines, each of which specifies a line segment or an arc. In the description of commands below, the current position is the position to start the next cut, if any. After executing the cut specified by a command, the current position is moved to the end position of the cut made. The commands given are one of those listed below. The command name starts from the first column of a line and the command and its arguments are separated by a space. All the command arguments are integers. start x y Specifies the start position of a path. This command itself does not specify any cutting; it only sets the current position to be (x; y). line x y Specifies a linear cut along a straight line from the current position to the position (x; y), which is not identical to the current position. arc x y r Specifies a round cut along a circular arc. The arc starts from the current position and ends at (x; y), which is not identical to the current position. The arc has a radius of |r|. When r is negative, the center of the circle is to the left side of the direction of this round cut; when it is positive, it is to the right side (Figure 7). The absolute value of r is greater than the half distance of the two ends of the arc. Among two arcs connecting the start and the end positions with the specified radius, the arc specified is one with its central angle less than 180 degrees. close Closes a path by making a linear cut to the initial start position and terminates a dataset. If the current position is already at the start position, this command simply indicates the end of a dataset. The figure below gives an example of a command sequence and its corresponding path. Note that, in this case, the given radius -r is negative and thus the center of the arc is to the left of the arc. The arc command should be interpreted as shown in this figure and, not the other way around on the same circle. A dataset starts with a start command and ends with a close command. The end of the input is specified by a line with a command end.There are at most 100 commands in a dataset and at most 100 datasets are in the input. Absolute values of all the coordinates and radii are less than or equal to 100.You may assume that the path does not cross nor touch itself. You may also assume that paths will never expand beyond edges of the cardboard, or, in other words, the cardboard is virtually infinitely large. Output For each of the dataset, output a line containing x- and y-coordinates of the center of mass of the top cut out by the path specified, and then a character ‘+’ or ‘-’ indicating whether this center is on the top or not, respectively. Two coordinates should be in decimal fractions. There should be a space between two coordinates and between the y-coordinate and the character ‘+’ or ‘-’. No other characters should be output. The coordinates may have errors less than 10−3. You may assume that the center of mass is at least 10−3 distant from the path. Sample Input start 0 0 arc 2 2 -2 line 2 5 arc 0 3 -2 close start -1 1 line 2 1 line 2 2 line -2 2 arc -3 1 -1 line -3 -2 arc -2 -3 -1 line 2 -3 line 2 -2 line -1 -2 line -1 -1 arc -1 0 2 close start 0 0 line 3 0 line 5 -1 arc 4 -2 -1 line 6 -2 line 6 1 line 7 3 arc 8 2 -1 line 8 4 line 5 4 line 3 5 arc 4 6 -1 line 2 6 line 2 3 line 1 1 arc 0 2 -1 close end Sample Output 1.00000 2.50000 + -1.01522 -0.50000 - 4.00000 2.00000 +
malloc与realloc问题(C数据结构)
如下代码所示,关于malloc与realloc出现5处错误: ``` #include <stdio.h> #include <stdlib.h> #define STACK_INIT_SIZE 100; #define STACKINCREMENT 10; typedef struct{ int *base; int *top; int stacksize; }SqStack; void InitStack(SqStack S){ S.base=(int *)malloc(STACK_INIT_SIZE*sizeof(int)); S.top=S.base; S.stacksize=STACK_INIT_SIZE; }//___________________InitStack_______________________ void Push(SqStack S,int e){ if(S.top==S.base){ S.base=(int *)realloc(S.base,(S.stacksize+STACKINCREMENT)*sizeof(int)); S.top=S.base+S.stacksize; S.stacksize+=STACKINCREMENT; } *S.top=e; S.top++; } void main(){ SqStack S; InitStack(S); Push (S,5); } ``` SqStack.c D:\VC6\pvc6\COMMON\MSDEV98\BIN\SqStack.c(13) : error C2143: syntax error : missing ')' before ';' D:\VC6\pvc6\COMMON\MSDEV98\BIN\SqStack.c(13) : error C2059: syntax error : ')' D:\VC6\pvc6\COMMON\MSDEV98\BIN\SqStack.c(13) : error C2100: illegal indirection D:\VC6\pvc6\COMMON\MSDEV98\BIN\SqStack.c(20) : error C2143: syntax error : missing ')' before ';' D:\VC6\pvc6\COMMON\MSDEV98\BIN\SqStack.c(20) : error C2143: syntax error : missing ';' before ')' Error executing cl.exe. SqStack.obj - 5 error(s), 0 warning(s) 求大佬解答~~
这是一个关于C++的简单代码问题
``` #include<iostream> using namespace std; struct typedef LNode { int data; LNode *Next; }*List; int main() { return 0; } ``` 这是我写的代码,我就是想写个链表结点结构体 报错如下: --------------------Configuration: 123 - Win32 Debug-------------------- Compiling... 123.cpp F:\C语言程序\123.cpp(4) : error C2239: unexpected token '{' following declaration of 'LNode' F:\C语言程序\123.cpp(8) : error C2501: 'List' : missing storage-class or type specifiers Error executing cl.exe. 123.exe - 2 error(s), 0 warning(s) 求解
在Bulid 时出错 ,Error executing link.exe.
小白,敲课本的代码,出现错误,这是我第一次出现这样的错误,根本无从下手,请教大神出手相救。。。 --------------------Configuration: 具有构造函数的类1 - Win32 Debug-------------------- Linking... 具有构造函数的类1.obj : error LNK2001: unresolved external symbol "public: void __thiscall BankAccout::output(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?output@BankAccout@@QAEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@ @Z) Debug/具有构造函数的类1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. 具有构造函数的类1.exe - 2 error(s), 0 warning(s) //该程序用于演示BackAccount 类 #include <iostream> using namespace std; //定义银行账户的类 class BankAccout { public: BankAccout(int dollars , int cents , double rate ); //将账户余额初始化为¥dollars.cents 将利率初始化为利率百分比 BankAccout(int dollars ,double rate); //将账户余额初始化为¥dollars.00 将利率初始化为利率百分比 BankAccout();//默认构造函数 //将账户余额初始化为0.00 将利率初始化为0.0% void update(); //后条件:将1年的单利添加到账户余额上 //将当前账户利率作为一个百分比返回 double get_rate (); //返回当前账户余额 double get_balance(); void output (ostream &outs); private: double balance ; double interest_rate ; //将百分比转换成小数 double fraction(double percent); }; int main () { BankAccout account1(100 , 2.3) , account2 ; cout <<"account1 initialized as follows :\n"; account1.output(cout); cout << "account2 initialized as follows : \n" ; account2.output(cout); //对构造函数BankAccount::BankAccount 的显示调用 account1 = BankAccout(999 , 99 , 5.5); cout << "account1 reset to the following :\n"; account1.output(cout); return 0 ; } //将账户余额初始化为&dallors.00将利率初始化为利率百分比 BankAccout::BankAccout(int dollars ,int cents , double rate) { if ((dollars < 0 ) ||(cents < 0 )) { cout <<"Illegal values for money or interest rate .\n"; exit(1); } balance = dollars + 0.01 * cents; interest_rate = rate ; } //将账户余额初始化为&dallors.00 将利率初始化为利率百分比 BankAccout::BankAccout(int dollars , double rate ) { if ((dollars < 0 ) || (rate < 0 )) { cout <<"Illegal values for money or interest rate .\n"; exit(1); } balance = dollars ; interest_rate = rate ; } BankAccout::BankAccout():balance(0) , interest_rate(0.0) { //主体有意留空 }
FreeRadiant 代码编程来实现
Problem Description Desolators are the elite troops of the WHU army in the alternate world of ICPC. When the Desolator plant a powerful Radiation Cannon in the ground, the cannon emits a radiation field over a circular area with radius R, poisoning everything within the circle (including boundary).The desolator must remain immobile while using this attack; if he wishes to move he has to uproot the cannon, disabling the radiation field. To protect desolator himself from the harm of radiation, the Desolator wears an armored Radiation suit. This suit is protected against the radiation emitted by the cannon. There are N enemies need to be destroyed. Each enemy can be destroyed if their total attacked times reach a certain value. Fortunately we know that value for each enemy. Our honored desolator FreeRadiant is executing this mission. He can use his cannon freely: e.g. plant it somewhere, wait for some time, uproot it and plant it somewhere else again and so on. The Desolator is so fast that planting, uprooting and moving the cannon takes no time, only the poisoning time matters. He just wants to know the total time needed in which he has to plant the cannon into the ground. Input The first line consists of an integer of T, indicating the test cases in the file. Each case begins with two integers, N and R, indicating the number of enemies and the radius of the circle. The next N lines, each line consists of two integers Xi, Yi, Pi, indicating the coordinate and the time needed to destroy each enemy. Output Output one float number rounded to 2 fractional digits, indicating the minimum time for the cannon needs to be planted in the ground. Constrains T <= 20 0 < N <= 100 0 < R <= 10000 0 <= Xi, Yi, Pi <= 10000 Sample Input 2 4 1 1 1 3 1 -1 3 -1 1 3 -1 -1 3 5 1 100 100 10000 1 1 3 1 -1 3 -1 1 3 -1 -1 3 Sample Output 6.00 10006.00
C语言报错error C2143: syntax error : missing ')' before '['怎么办
题目是一个数组只有大小写字母,要求转换大小写字母,用子函数实现 我写的代码如下: #include<stdio.h> void main() { char a[26]; int i; char ZH(a[26]); for(i=0;i<26;i++) { a[i]=i+'a'; } a[i]=ZH(a[26]); for(i=0;i<26;i++) printf("%d",a[i]); } char ZH(a[26]) { int n; for(n=o;n<26;n++) { a[n]=n+'a'+32; } return(a[26]); } 报错如下: C:\Users\SN-crush\Desktop\6.c(6) : error C2143: syntax error : missing ')' before '[' C:\Users\SN-crush\Desktop\6.c(6) : error C2090: function returns array C:\Users\SN-crush\Desktop\6.c(6) : error C2059: syntax error : ')' C:\Users\SN-crush\Desktop\6.c(13) : warning C4047: '=' : 'char ' differs in levels of indirection from 'char *' C:\Users\SN-crush\Desktop\6.c(19) : error C2143: syntax error : missing ')' before '[' C:\Users\SN-crush\Desktop\6.c(19) : error C2090: function returns array C:\Users\SN-crush\Desktop\6.c(19) : error C2059: syntax error : ')' C:\Users\SN-crush\Desktop\6.c(23) : error C2065: 'o' : undeclared identifier C:\Users\SN-crush\Desktop\6.c(24) : error C2109: subscript requires array or pointer type C:\Users\SN-crush\Desktop\6.c(24) : error C2106: '=' : left operand must be l-value C:\Users\SN-crush\Desktop\6.c(26) : error C2109: subscript requires array or pointer type C:\Users\SN-crush\Desktop\6.c(26) : warning C4047: 'return' : 'char *' differs in levels of indirection from 'int ' Error executing cl.exe. 6.obj - 10 error(s), 2 warning(s) 看不懂,这咋改you
Top Spinning
Problem Description Spinning tops are one of the most popular and the most traditional toys. Not only spinning them, but also making one’s own is a popular enjoyment. One of the easiest way to make a top is to cut out a certain shape from a cardboard and pierce an axis stick through its center of mass. Professionally made tops usually have three dimensional shapes, but in this problem we consider only two dimensional ones. Usually, tops have rotationally symmetric shapes, such as a circle, a rectangle (with 2-fold rotational symmetry) or a regular triangle (with 3-fold symmetry). Although such symmetries are useful in determining their centers of mass, they are not definitely required; an asymmetric top also spins quite well if its axis is properly pierced at the center of mass. When a shape of a top is given as a path to cut it out from a cardboard of uniform thickness, your task is to find its center of mass to make it spin well. Also, you have to determine whether the center of mass is on the part of the cardboard cut out. If not, you cannot pierce the axis stick, of course. Java Spicific : Submitted Java programs may not use classes implementing the interface “java.awt.Shape”. You may use them for your debugging purposes. Input The input consists of multiple datasets, each of which describes a counterclockwise path on a cardboard to cut out a top. A path is indicated by a sequence of command lines, each of which specifies a line segment or an arc. In the description of commands below, the current position is the position to start the next cut, if any. After executing the cut specified by a command, the current position is moved to the end position of the cut made. The commands given are one of those listed below. The command name starts from the first column of a line and the command and its arguments are separated by a space. All the command arguments are integers. start x y Specifies the start position of a path. This command itself does not specify any cutting; it only sets the current position to be (x; y). line x y Specifies a linear cut along a straight line from the current position to the position (x; y), which is not identical to the current position. arc x y r Specifies a round cut along a circular arc. The arc starts from the current position and ends at (x; y), which is not identical to the current position. The arc has a radius of |r|. When r is negative, the center of the circle is to the left side of the direction of this round cut; when it is positive, it is to the right side (Figure 7). The absolute value of r is greater than the half distance of the two ends of the arc. Among two arcs connecting the start and the end positions with the specified radius, the arc specified is one with its central angle less than 180 degrees. close Closes a path by making a linear cut to the initial start position and terminates a dataset. If the current position is already at the start position, this command simply indicates the end of a dataset. The figure below gives an example of a command sequence and its corresponding path. Note that, in this case, the given radius -r is negative and thus the center of the arc is to the left of the arc. The arc command should be interpreted as shown in this figure and, not the other way around on the same circle. A dataset starts with a start command and ends with a close command. The end of the input is specified by a line with a command end.There are at most 100 commands in a dataset and at most 100 datasets are in the input. Absolute values of all the coordinates and radii are less than or equal to 100.You may assume that the path does not cross nor touch itself. You may also assume that paths will never expand beyond edges of the cardboard, or, in other words, the cardboard is virtually infinitely large. Output For each of the dataset, output a line containing x- and y-coordinates of the center of mass of the top cut out by the path specified, and then a character ‘+’ or ‘-’ indicating whether this center is on the top or not, respectively. Two coordinates should be in decimal fractions. There should be a space between two coordinates and between the y-coordinate and the character ‘+’ or ‘-’. No other characters should be output. The coordinates may have errors less than 10&#8722;3. You may assume that the center of mass is at least 10&#8722;3 distant from the path. Sample Input start 0 0 arc 2 2 -2 line 2 5 arc 0 3 -2 close start -1 1 line 2 1 line 2 2 line -2 2 arc -3 1 -1 line -3 -2 arc -2 -3 -1 line 2 -3 line 2 -2 line -1 -2 line -1 -1 arc -1 0 2 close start 0 0 line 3 0 line 5 -1 arc 4 -2 -1 line 6 -2 line 6 1 line 7 3 arc 8 2 -1 line 8 4 line 5 4 line 3 5 arc 4 6 -1 line 2 6 line 2 3 line 1 1 arc 0 2 -1 close end Sample Output 1.00000 2.50000 + -1.01522 -0.50000 - 4.00000 2.00000 + HINT
这是一个关于C语言引用的问题
我想测试引用的用法,敲了以下代码 ``` int main() { /*List tou; InitList(tou); List shou; InitList(shou); */ int &a=1; int b=2; int &c=b; getch(); return 0; } ``` 编译后出现下面错误 --------------------Configuration: 线性表 - Win32 Debug-------------------- Compiling... 线性表.cpp E:\数据结构\线性表.cpp(46) : error C2440: 'initializing' : cannot convert from 'const int' to 'int &' A reference that is not to 'const' cannot be bound to a non-lvalue Error executing cl.exe. 线性表.exe - 1 error(s), 0 warning(s) 我感觉非常奇怪的,首先这个转换错误出现一次,证明只有一次赋值出错。根据以往经验,我判断是&a=1出错。出错原因就是整型变量转化成引用整型,不合法。 &c=b也是整型变量转化成引用变量,为啥就合法了呢?
这是一个关于数据结构链表结点的相关问题
``` #include<iostream> #include<conio.h> #include<string> #include<iostream> using namespace std; typedef struct { string name; float price; }Book; typedef Book ElemType typedef struct LNode { ElemType Elem; LNode *Next; }*LNod,List; int main() { cout<<a[2]; getch(); return 0; } ``` 我定义了一个链表的结构,报错如下 --------------------Configuration: 线性表 - Win32 Debug-------------------- Compiling... 线性表.cpp E:\数据结构\线性表.cpp(15) : error C2143: syntax error : missing ';' before '<class-head>' E:\数据结构\线性表.cpp(15) : fatal error C1004: unexpected end of file found Error executing cl.exe. 线性表.exe - 2 error(s), 0 warning(s) 为什么呢
这是一个关于C的指针相关问题
``` #include<iostream> #include<conio.h> using namespace std; int main() { int b=1; int *a; a=&b; cout<<a; printf("\n"); a++; cout<<a; printf("1"); getch(): return 0; } ``` 这是我写的代码,我想测试下指针变量++后的效果,但是报了下面的错误。为什么呢 ? --------------------Configuration: cecece - Win32 Debug-------------------- Compiling... cecece.cpp E:\数据结构\cecece.cpp(17) : error C2143: syntax error : missing ';' before ':' E:\数据结构\cecece.cpp(19) : warning C4508: 'main' : function should return a value; 'void' return type assumed Error executing cl.exe. cecece.exe - 1 error(s), 1 warning(s)
cannot open file "mpichd.lib" Error executing link
在VC6.0中编写MPI程序时,出现这个错误。我找了下,没有找到这个mpichd.lib文件,各位有没有谁有这个文件的啊,帮帮忙啊
利用Bazel和NDK编译不能通过
想按照[Tensorflow的安卓Demo](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android "")的步骤把这个Demo编译一遍,可是不懂NDK,编译错误,错误信息如下: ``` tp@tp-Inspiron-3421:~/tensorflow$ /home/tp/bin/bazel build //tensorflow/examples/android:tensorflow_demo .................. INFO: Found 1 target... INFO: From Compiling external/re2/re2/stringpiece.cc: external/re2/re2/stringpiece.cc:6:23: fatal error: util/util.h: No such file or directory #include "util/util.h" ^ compilation terminated. ERROR: /home/tp/.cache/bazel/_bazel_tp/52515bfa99a2d82b1037ec6d5029c6c1/external/re2/BUILD:7:1: C++ compilation of rule '@re2//:stringpiece' failed: arm-linux-androideabi-gcc failed: error executing command external/androidndk/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc -fstack-protector-strong -fpic -ffunction-sections -funwind-tables ... (remaining 37 argument(s) skipped). Target //tensorflow/examples/android:tensorflow_demo failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 123.372s, Critical Path: 52.03s. ``` 请问这是为什么?怎么解决?
这是一个关于数据结构线性表的问题
``` #include<iostream> using namespace std; #define OK 1 #define MAXSIZE 10000 #define OVERFLOW -1 int main() { typedef struct { char no[20]; char name[50]; float price; }Book; typedef struct { Book *elem; int length; }SqList; SqList L; return 0; } int a(SqList L) { return OK; } ``` 上面是我写的代码,编译后 --------------------Configuration: 线性表 - Win32 Debug-------------------- Compiling... 线性表.cpp E:\数据结构\线性表.cpp(24) : warning C4101: 'L' : unreferenced local variable E:\数据结构\线性表.cpp(28) : error C2065: 'SqList' : undeclared identifier E:\数据结构\线性表.cpp(28) : error C2146: syntax error : missing ')' before identifier 'L' E:\数据结构\线性表.cpp(28) : error C2059: syntax error : ')' E:\数据结构\线性表.cpp(29) : error C2143: syntax error : missing ';' before '{' E:\数据结构\线性表.cpp(29) : error C2447: missing function header (old-style formal list?) Error executing cl.exe. 线性表.exe - 5 error(s), 1 warning(s) 显示上述错误,为什么呢?
jenkins构建项目报编译错误问题
用jenkins构建项目时,报编译问题:[ERROR] COMPILATION ERROR [INFO] ------------------------------------------------------------- [ERROR] Failure executing javac, but could not parse the error: Fatal Error: Unable to find package java.lang in classpath or bootclasspath
[Errno 'jupyter-contrib' not found] 2
想给jupyter notebook安装自动提示功能时遇到 jupyter contrib nbextension install --user Error executing Jupyter command 'contrib': [Errno 'jupyter-contrib' not found] 2 这种问题需要怎么解决呢
idea爆出org.hibernate.tool.schema.spi.CommandAcceptanceException不知道怎么解决
``` org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "create table hibernate_sequence (next_val bigint) engine=InnoDB" via JDBC Statement at org.hibernate.tool.schema.internal.exec.GenerationTargetToDatabase.accept(GenerationTargetToDatabase.java:67) at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlString(AbstractSchemaMigrator.java:559) at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.applySqlStrings(AbstractSchemaMigrator.java:504) at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.createTable(AbstractSchemaMigrator.java:277) at org.hibernate.tool.schema.internal.GroupedSchemaMigratorImpl.performTablesMigration(GroupedSchemaMigratorImpl.java:71) at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.performMigration(AbstractSchemaMigrator.java:207) at org.hibernate.tool.schema.internal.AbstractSchemaMigrator.doMigration(AbstractSchemaMigrator.java:114) at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.performDatabaseAction(SchemaManagementToolCoordinator.java:184) at org.hibernate.tool.schema.spi.SchemaManagementToolCoordinator.process(SchemaManagementToolCoordinator.java:73) at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:320) at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:462) at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1237) at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:58) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:391) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:378) at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1855) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1 792) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1108) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) at com.liuzeyu.BlogApplication.main(BlogApplication.java:12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) Caused by: java.sql.SQLSyntaxErrorException: Table 'blog.hibernate_sequence' doesn't exist 我是数据库挂了之后重新安装的MySQL 安装后连接正常,但是一启动spring boot就抛出这个异常 网上很多地方说修改hibernate.cfg.xml文件 但idea找不到这个文件,我的项目是SpringBoot+JPA+Thymeleaf ```
安装ai2018提示无法写入注册表值.请检查权限错误代码160.
![图片说明](https://img-ask.csdn.net/upload/201909/19/1568884230_578092.jpg) ![图片说明](https://img-ask.csdn.net/upload/201909/19/1568884312_48235.jpg) 已经试过了用管理员模式运行了,大佬帮忙看下代码什么意思: -------------------------------------- Summary -------------------------------------- - 2 fatal error(s), 0 error(s), 1 warnings(s) FATAL: Error (Code = 160) executing in command 'CreateRegistryKeyCommand' for package: 'AdobeIllustrator22-Core', version:22.0.0.244 FATAL: Error occurred in install of package (Name: AdobeIllustrator22-Core Version: 22.0.0.244). Error code: '160' WARN: Check for Registry permissions. (Creating Registry Key Failed - Start 64-bit:1 root:0 key:.dib\OpenWithList. Error 5 拒绝访问。) -------------------------------------------------------------------------------------
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
死磕YOLO系列,YOLOv1 的大脑、躯干和手脚
YOLO 是我非常喜欢的目标检测算法,堪称工业级的目标检测,能够达到实时的要求,它帮我解决了许多实际问题。 这就是 YOLO 的目标检测效果。它定位了图像中物体的位置,当然,也能预测物体的类别。 之前我有写博文介绍过它,但是每次重新读它的论文,我都有新的收获,为此我准备写一个系列的文章来详尽分析它。这是第一篇,从它的起始 YOLOv1 讲起。 YOLOv1 的论文地址:https://www.c
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的 回答 - Bravo Yeung,获得该问题下回答中得最高赞(236赞和1枚专业勋章),对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalk
20行Python代码爬取王者荣耀全英雄皮肤
引言 王者荣耀大家都玩过吧,没玩过的也应该听说过,作为时下最火的手机MOBA游戏,咳咳,好像跑题了。我们今天的重点是爬取王者荣耀所有英雄的所有皮肤,而且仅仅使用20行Python代码即可完成。 准备工作 爬取皮肤本身并不难,难点在于分析,我们首先得得到皮肤图片的url地址,话不多说,我们马上来到王者荣耀的官网: 我们点击英雄资料,然后随意地选择一位英雄,接着F12打开调试台,找到英雄原皮肤的图片
简明易理解的@SpringBootApplication注解源码解析(包含面试提问)
欢迎关注文章系列 ,关注我 《提升能力,涨薪可待》 《面试知识,工作可待》 《实战演练,拒绝996》 欢迎关注我博客,原创技术文章第一时间推出 也欢迎关注公 众 号【Ccww笔记】,同时推出 如果此文对你有帮助、喜欢的话,那就点个赞呗,点个关注呗! 《提升能力,涨薪可待篇》- @SpringBootApplication注解源码解析 一、@SpringBootApplication 的作用是什
西游记团队中如果需要裁掉一个人,会先裁掉谁?
2019年互联网寒冬,大批企业开始裁员,下图是网上流传的一张截图: 裁员不可避免,那如何才能做到不管大环境如何变化,自身不受影响呢? 我们先来看一个有意思的故事,如果西游记取经团队需要裁员一名,会裁掉谁呢,为什么? 西游记团队组成: 1.唐僧 作为团队teamleader,有很坚韧的品性和极高的原则性,不达目的不罢休,遇到任何问题,都没有退缩过,又很得上司支持和赏识(直接得到唐太宗的任命,既给
Python语言高频重点汇总
Python语言高频重点汇总 GitHub面试宝典仓库——点这里跳转 文章目录Python语言高频重点汇总**GitHub面试宝典仓库——点这里跳转**1. 函数-传参2. 元类3. @staticmethod和@classmethod两个装饰器4. 类属性和实例属性5. Python的自省6. 列表、集合、字典推导式7. Python中单下划线和双下划线8. 格式化字符串中的%和format9.
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
ES6基础-ES6的扩展
进行对字符串扩展,正则扩展,数值扩展,函数扩展,对象扩展,数组扩展。 开发环境准备: 编辑器(VS Code, Atom,Sublime)或者IDE(Webstorm) 浏览器最新的Chrome 字符串的扩展: 模板字符串,部分新的方法,新的unicode表示和遍历方法: 部分新的字符串方法 padStart,padEnd,repeat,startsWith,endsWith,includes 字
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
web前端javascript+jquery知识点总结
Javascript javascript 在前端网页中占有非常重要的地位,可以用于验证表单,制作特效等功能,它是一种描述语言,也是一种基于对象(Object)和事件驱动并具有安全性的脚本语言 ,语法同java类似,是一种解释性语言,边执行边解释。 JavaScript的组成: ECMAScipt 用于描述: 语法,变量和数据类型,运算符,逻辑控制语句,关键字保留字,对象。 浏览器对象模型(Br
Qt实践录:开篇
本系列文章介绍笔者的Qt实践之路。 背景 笔者首次接触 Qt 大约是十多年前,当时试用了 Qt ,觉得不如 MFC 好用。现在 Qt 的 API、文档等都比较完善,在年初决定重新拾起,正所谓技多不压身,将 Qt 当为一种谋生工具亦未尝不可。利用春节假期的集中时间,快速专攻一下。 本系列名为“Qt实践”,故不是教程,笔者对 Qt 的定位是“使用”,可以帮助快速编写日常的工具,如串口、网络等。所以不
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
为什么听过很多道理,依然过不好这一生?
记录学习笔记是一个重要的习惯,不希望学习过的东西成为过眼云烟。做总结的同时也是一次复盘思考的过程。 本文是根据阅读得到 App上《万维钢·精英日课》部分文章后所做的一点笔记和思考。学习是一个系统的过程,思维模型的建立需要相对完整的学习和思考过程。以下观点是在碎片化阅读后总结的一点心得总结。
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
一条链接即可让黑客跟踪你的位置! | Seeker工具使用
搬运自:冰崖的部落阁(icecliffsnet) 严正声明:本文仅限于技术讨论,严禁用于其他用途。 请遵守相对应法律规则,禁止用作违法途径,出事后果自负! 上次写的防社工文章里边提到的gps定位信息(如何防止自己被社工或人肉) 除了主动收集他人位置信息以外,我们还可以进行被动收集 (没有技术含量) Seeker作为一款高精度地理位置跟踪工具,同时也是社交工程学(社会工程学)爱好者...
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧...... 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
Python学习笔记(语法篇)
本篇博客大部分内容摘自埃里克·马瑟斯所著的《Python编程:从入门到实战》(入门类书籍),采用举例的方式进行知识点提要 关于Python学习书籍推荐文章 《学习Python必备的8本书》 Python语法特点: 通过缩进进行语句组织 不需要变量或参数的声明 冒号 1 变量和简单数据结构 1.1 变量命名 只能包含字母、数字和下划线,且不能以数字打头。 1.2 字符串 在Python中,用引号...
相关热词 c#导入fbx c#中屏蔽键盘某个键 c#正态概率密度 c#和数据库登陆界面设计 c# 高斯消去法 c# codedom c#读取cad文件文本 c# 控制全局鼠标移动 c# temp 目录 bytes初始化 c#
立即提问