当前位置:网站首页>phpexcel 里 获取某一列的列表 获取某一列的字母
phpexcel 里 获取某一列的列表 获取某一列的字母
2022-07-01 09:08:00 【你的长情呢~】
function get_zimu($index, $start = 65)
{
$str = '';
if (floor($index / 26) > 0){
$str .= get_zimu(floor($index / 26) - 1);
}
return $str . chr($index % 26 + $start);
}
测试
get_zimu('1') #A
get_zimu('27') #AB
边栏推荐
- Performance improvement 2-3 times! The second generation Kunlun core server of Baidu AI Cloud was launched
- 樹結構---二叉樹2非遞歸遍曆
- FAQ | FAQ for building applications for large screen devices
- 2.4 activation function
- Mise en œuvre simple de l'équilibrage de la charge par nacos
- Shell脚本-case in 和正则表达式
- tensorrt yolov5_ trt. Py comments
- Shell脚本-while循环详解
- 【pytorch】softmax函数
- Shell脚本-case in语句
猜你喜欢
Jetson Nano 安装TensorFlow GPU及问题解决
2.3 [pytorch] data preprocessing torchvision datasets. ImageFolder
Implementation and application of queue
Design and manufacture of simple digital display electronic scale
2.2 【pytorch】torchvision. transforms
Daily practice of C language - day 80: currency change
小鸟识别APP
2.2 【pytorch】torchvision.transforms
樹結構---二叉樹2非遞歸遍曆
Bird recognition app
随机推荐
树结构---二叉树1
The jar package embedded with SQLite database is deployed by changing directories on the same machine, and the newly added database records are gone
[interview brush 101] linked list
Shell script echo command escape character
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + DHT11 +NodeJs本地服务+ MySQL数据库
Mise en œuvre simple de l'équilibrage de la charge par nacos
Differences among tasks, threads and processes
Daily office consumables management solution
Input标签的type设置为number,去掉上下箭头
【pytorch】transforms. Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
【pytorch】transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
Promise asynchronous programming
Key points of NFT supervision and overseas policies
Shell script - string
Principle and application of single chip microcomputer timer, serial communication and interrupt system
Leetcode daily question brushing record --540 A single element in an ordered array
NiO zero copy
Installing Oracle EE
tensorrt yolov5_ trt. Py comments
序列化、监听、自定义注解