现在,我已经学习了这次的DoWhile循环,但我的问题是扫描仪。我想以字符串的形式接收输入,但当我这样做时在do之外,它表示不能将y或yes解析为变量。一位朋友推荐了switch cases,你觉得呢?String a = sc.nextLine(); wow(); //My method name
}while(a == y); //Error is here
当我删除'while‘循环时,它会显示窗口,但是没有任何东西在里面,因为可视化在循环中。我使用pycharm pro 2021.3.2和python 3.9。fill="white")
c.create_rectangle(Jordan.head_cords[0]*10the Apple
c.create_rectangle(nessy.pos[0]*10-9, nessy.pos[0]*10, nessy.pos