摘要:1.全局变量 例题: 用php写出服务端ip和用户端ip。 $_SERVER : 'REMOTE_ADDR' The IP address from which the user is viewing the current page. $_SERVER['SERVER_NAME'] :需要使用函数
阅读全文
摘要:for in 1.计数循环 for i range(N): range:0~N-1. 2.特定次数 for i range(M,N,K): //M 起点,N终点,K步长 3.字符串遍历循环 for i in "python123": print(i) //输出: p y t h o n 1 2 3
阅读全文
摘要:指针的数组 和数组的指针 指针的数组,array of points int* a[4]; int c[4] = {0x80000000,0xFFFFFFFF,0x00000000,0x7FFFFFFF}; //将c中元素赋值给a for(unsigned int i = 0;i<4;i++){ a
阅读全文