caiquan1.png (99.84 KB, 下载次数: 24)
步骤1
caiquan2.png (139.25 KB, 下载次数: 25)
步骤2
class Rock_scissors_paper(yo_trun) def guess #yo_trun为你所出的石头剪子布其中一个 #===这里写你的猜拳计算程序 end end
a = Rock_scissors_paper("石头").new a.guess
caiquan3.png (62.65 KB, 下载次数: 25)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |