- 虚拟机网络为 NAT 模式
- 将虚拟机内代理设置成主机IP,端口为shadowsocks端口(1080)
- shadowsocks 选中 允许来自局域网的链接
- repr 可以打印出换行符之类的,是开发用的string类型,《fluent python》里有专门的介绍
- str 普通的字符串
void F(int); // 1: declaration of F(int)
void F(const int); // 2: re-declaration of F(int)
void F(int) { /* ... */ } // 3: definition of F(int)
void F(const int) { /* ... */ } // 4: error: re-definition of F(int)
void F(const int* x); // 1
void F(const int& x); // 2
To ensure that the names declared in that portion of code have C linkage, and thus C++ name mangling is not performed
#ifdef __cplusplus
extern "C" {
#endif
void *memset (void *, int, size_t);
char *strcat (char *, const char *);
int strcmp (const char *, const char *);
char *strcpy (char *, const char *);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
每个阶段只有一个状态->递推; | |
每个阶段的最优状态都是由上一个阶段的最优状态得到的->贪心; | |
每个阶段的最优状态是由之前所有阶段的状态的组合得到的->搜索; | |
每个阶段的最优状态可以从之前某个阶段的某个或某些状态直接得到而不管之前这个状态是如何得到的->动态规划。 |
NewerOlder