lnlidawei

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 52 下一页

2022年8月16日

摘要: php:php以脚本的方式运行 一、php源码 1 [root@rockylinux php]# 2 [root@rockylinux php]# uname -a 3 Linux rockylinux 4.18.0-372.19.1.el8_6.x86_64 #1 SMP Tue Aug 2 16 阅读全文
posted @ 2022-08-16 20:21 lnlidawei 阅读(266) 评论(0) 推荐(0)

摘要: php:输出关联数组特定范围的数据 一、php源码(将“关联数组”转化为“索引数组”,然后输出) 1 <?php 2 3 // define data structure 4 class SCOPE 5 { 6 private $scp_start=""; 7 private $scp_end="" 阅读全文
posted @ 2022-08-16 13:04 lnlidawei 阅读(134) 评论(0) 推荐(0)

摘要: python3:面向对象之成员变量(成员变量赋值为元组、字典) 一、python3源码 1 #!/usr/bin/python3 2 3 4 class data: 5 6 # python是“弱类型语言”,可以给“变量”赋予“任何类型的数值” 7 8 # '__'开头的变量,此变量的访问类型为pr 阅读全文
posted @ 2022-08-16 01:49 lnlidawei 阅读(271) 评论(0) 推荐(0)

摘要: php:面向对象之成员变量(数组) 一、PHP源码 1 <?php 2 3 class DATA{ 4 public $dlt_data = ""; 5 6 // set value of $dlt_data by ARRAY 7 function set_array_value($array_ty 阅读全文
posted @ 2022-08-16 01:08 lnlidawei 阅读(160) 评论(0) 推荐(0)

2022年8月6日

摘要: php:对象的数组(3) 一、php源码 <?php class obj { public $value = ""; } $num = array(1,2,3,4,5,6); for($i=0; $i<6; $i++) { // 数组的创建: 可以用另一个数组元素($num[$i])作为索引; $c 阅读全文
posted @ 2022-08-06 18:35 lnlidawei 阅读(110) 评论(0) 推荐(0)

摘要: php:对象的数组(2) 一、代码一 1、“代码一”的源码 <?php class NUM { public $number=""; public $number_class=""; } class obj { public $v1 = ""; public $v2 = ""; } for($i=0 阅读全文
posted @ 2022-08-06 16:54 lnlidawei 阅读(215) 评论(0) 推荐(0)

摘要: php:对象的数组(1) 一、php源码 <?php // define object class obj{ public $v1 = ""; public $v2 = ""; public function init() { $this -> v1 = ""; $this -> v2 = ""; 阅读全文
posted @ 2022-08-06 15:54 lnlidawei 阅读(139) 评论(0) 推荐(0)

2022年7月12日

摘要: gcc - include - 具体位置: 一、gcc - C - 头文件的具体位置 1、 查找命令:[root@rockylinux tmp]# gcc -xc -E -v - 2、 c-include的位置: [root@rockylinux tmp]# gcc -xc -E -v - #inc 阅读全文
posted @ 2022-07-12 12:43 lnlidawei 阅读(243) 评论(0) 推荐(0)

2022年7月11日

摘要: LAMP 环境搭建(LAMP, L=Linux, A=httpd(apache), M=MariaDB, P=PHP) 一、操作系统 1、openeuler: Linux openeuler 5.10.0-60.18.0.50.oe2203.x86_64 二、lamp环境安装 1、[root@ope 阅读全文
posted @ 2022-07-11 16:56 lnlidawei 阅读(352) 评论(0) 推荐(0)

2022年7月4日

摘要: c:struct之匿名struct 一、代码: /* * gcc11.1(c17) * */ #include <stddef.h> #include <stdio.h> // 定义常规struct和指针struct typedef struct { // 匿名struct的定义 struct{ c 阅读全文
posted @ 2022-07-04 01:02 lnlidawei 阅读(232) 评论(0) 推荐(0)

上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 52 下一页