这个怎么实现啊!!!
php吧
全部回复
仅看楼主
level 2
2024年01月15日 02点01分 1
level 13
问gpt
2024年01月15日 03点01分 2
level 5
建一个数组,key是1-7,value是A-G,接收输入数据,循环这个数组,根据key值输出value值
2024年01月15日 03点01分 3
level 8
滴滴我
2024年01月15日 05点01分 4
level 2
貌似最简单用哦Switch,1到7写一遍,要么数组key为1-7,value为A-G,然后用foreach,if来判断
2024年01月21日 17点01分 6
你都有key了,还需要循环?
2024年01月29日 06点01分
level 11
核心代码:
echo chr(64+$n);
$n进行输入判断一下就可以了。对$n小于1,大于7的情况都提示输入错误。
2024年01月22日 01点01分 7
level 1
数组最简单吧
2024年01月25日 12点01分 8
level 11
2024年01月26日 05点01分 9
专业[酷]
2024年02月18日 05点02分
level 1
数组对应即可
2024年01月26日 08点01分 10
1