这个是不是有问题?
老师,现在遇到一个很恶心我的问题,求解答
我的前后端都是没有问题的(我先是检查了后端,从数据库连接,调数据、遍历数据)都没有问题,php不报错。我查了前端,代码也核对过了,也没问题。但是我的浏览器控制台输出不了res参数,我看到那个后端返回的数据在console里面了,但是它一闪而过,就仿佛没出现一样。我太难了啊啊啊啊。求助!!!!
视频中.c文件是用keil打开的嘛?
20220129-221113.mp4
netshop.zip
老师,我十分的懵逼了,我其中一个用户可以跳转到结算页面,但是其中一个报错,这是什么原因?我的天啊
老师好,
我想问下直接update table,和 select ... for update的区别
直接update锁表,select ...for update锁行,是这样的区别吗?
问题: 怎么总是提示我输入的三对双引号有问题呢? 这个输入有什么诀窍吗? 不就是Enter 键旁边的引号键 分别按三次吗? 为什么原始代码里面的正确的, 自己的总是提示错误呢?
老师,我创建数据库的时候是设置utf-8的编码,为啥这里中文还是乱码???
老师我这个启动类的run方法为什么爆红呢?
我的pom文件是这样的
老师,我完全按照视频里的步骤来,但是子项目继承父项目一直报红
错误信息:Project 'com.jungle:parent:1.0-SNAPSHOT' not found
我在百度也没找出问题来
这个朴素贝叶斯方法要求各个特征相互独立,实际工作中我们怎么 去判断各个特征之间是否相互独立呢?
老师请问,这里前端传过来的TbUser,不需要加@RequestBody这个注释吗?这是为什么呢
pygametimerandom pygame.sprite Sprite SCREEN_WIDTH = SCREEN_HEIGHT = BG_COLOR = pygame.Color() TEXT_COLOR = pygame.Color() BaseItem(Sprite): (): pygame.sprite.Sprite.() MainGame(): window = my_tank = enemyTankList = [] enemyTankCount = myBulletList = [] enemyBulletList = [] explodeList = [] (): (): pygame.display.init() MainGame.window = pygame.display.set_mode([SCREEN_WIDTHSCREEN_HEIGHT]) MainGame.my_tank = Tank() .createEnemyTank() pygame.display.set_caption() : time.sleep() MainGame.window.fill(BG_COLOR) .getEvent() MainGame.window.blit(.getTextSuface(% (MainGame.enemyTankList))()) MainGame.my_tank MainGame.my_tank.live: MainGame.my_tank.displayTank() : MainGame.my_tank MainGame.my_tank = .blitEnemyTank() .blitMyBullet() .blitEnemyBullet() .blitExplode() MainGame.my_tank MainGame.my_tank.live: MainGame.my_tank.stop: MainGame.my_tank.move() pygame.display.update() (): top = i (MainGame.enemyTankCount): left = random.randint() speed = random.randint() enemy = EnemyTank(lefttopspeed) MainGame.enemyTankList.append(enemy) (): enemyTank MainGame.enemyTankList: enemyTank.live: enemyTank.displayTank() enemyTank.randMove() enemyBullet = enemyTank.shot() enemyBullet: MainGame.enemyBulletList.append(enemyBullet) : MainGame.enemyTankList.remove(enemyTank) (): myBullet MainGame.myBulletList: myBullet.live: myBullet.displayBullet() myBullet.move() myBullet.myBullet_hit_enemyTank() : MainGame.myBulletList.remove(myBullet) (): enemyBullet MainGame.enemyBulletList: enemyBullet.live: enemyBullet.displayBullet() enemyBullet.move() enemyBullet.enemyBullet_hit_myTank() : MainGame.enemyBulletList.remove(enemyBullet) (): explode MainGame.explodeList: explode.live: explode.displayExplode() : MainGame.explodeList.remove(explode) (): () () (text): pygame.font.init() font = pygame.font.SysFont() textSuface = font.render(textTEXT_COLOR) textSuface (): eventList = pygame.event.get() event eventList: event.type == pygame.QUIT: .endGame() event.type == pygame.KEYDOWN: MainGame.my_tank MainGame.my_tank.live: event.key == pygame.K_LEFT: MainGame.my_tank.direction = MainGame.my_tank.stop = () event.key == pygame.K_RIGHT: MainGame.my_tank.direction = MainGame.my_tank.stop = () event.key == pygame.K_UP: MainGame.my_tank.direction = MainGame.my_tank.stop = () event.key == pygame.K_DOWN: MainGame.my_tank.direction = MainGame.my_tank.stop = () event.key == pygame.K_SPACE: () (MainGame.myBulletList) < : myBullet = Bullet(MainGame.my_tank) MainGame.myBulletList.append(myBullet) event.type == pygame.KEYUP: event.key == pygame.K_UP event.key == pygame.K_DOWN event.key == pygame.K_RIGHT event.key == pygame.K_LEFT: MainGame.my_tank MainGame.my_tank.live: MainGame.my_tank.stop = Tank(Sprite): (lefttop): .images = { : pygame.image.load(): pygame.image.load(): pygame.image.load(): pygame.image.load()} .direction = .image = .images[.direction] .rect = .image.get_rect() .rect.left = left .rect.top = top .speed = .stop = .live = (): .direction == : .rect.left > : .rect.left -= .speed .direction == : .rect.left + .rect.height < SCREEN_WIDTH: .rect.left += .speed .direction == : .rect.top > : .rect.top -= .speed .direction == : .rect.top + .rect.height < SCREEN_HEIGHT: .rect.top += .speed (): Bullet() (): .image = .images[.direction] MainGame.window.blit(.image.rect) MyTank(Tank): (): EnemyTank(Tank): (lefttopspeed): (EnemyTank).(lefttop) .images = { : pygame.image.load(): pygame.image.load(): pygame.image.load(): pygame.image.load()} .direction = .randDirection() .image = .images[.direction] .rect = .image.get_rect() .rect.left = left .rect.top = top .speed = speed .flag = .step = (): num = random.randint() num == : num == : num == : num == : (): .step <= : .direction = .randDirection() .step = : .move() .step -= (): num = random.randint() num < : Bullet() Bullet(Sprite): (Tank): .image = pygame.image.load() .direction = Tank.direction .rect = .image.get_rect() .direction == : .rect.left = Tank.rect.left + Tank.rect.width / - .rect.width / .rect.top = Tank.rect.top - .rect.height .direction == : .rect.left = Tank.rect.left + Tank.rect.width / - .rect.width / .rect.top = Tank.rect.top + Tank.rect.height .direction == : .rect.left = Tank.rect.left - .rect.height .rect.top = Tank.rect.top + Tank.rect.width / - .rect.height / .direction == : .rect.left = Tank.rect.left + Tank.rect.height .rect.top = Tank.rect.top + Tank.rect.height / - .rect.height / .speed = .live = (): .direction == : .rect.top > : .rect.top -= .speed : .live = .direction == : .rect.top + .rect.height < SCREEN_HEIGHT: .rect.top += .speed : .live = .direction == : .rect.left > : .rect.left -= .speed : .live = .direction == : .rect.left + .rect.width < SCREEN_WIDTH: .rect.left += .speed : .live = (): MainGame.window.blit(.image.rect) (): enemyTank MainGame.enemyTankList: pygame.sprite.collide_rect(enemyTank): enemyTank.live = .live = explode = Explode(enemyTank) MainGame.explodeList.append(explode) (): MainGame.my_tank MainGame.my_tank.live: pygame.sprite.collide_rect(MainGame.my_tank): explode = Explode(MainGame.my_tank) MainGame.explodeList.append(explode) .live = MainGame.my_tank.live = Wall(): (): (): Explode(): (tank): .rect = tank.rect .images = [ pygame.image.load()pygame.image.load()pygame.image.load()pygame.image.load()pygame.image.load()] .step = .image = .images[.step] .live = (): .step < (.images): .image = .images[.step] .step += MainGame.window.blit(.image.rect) : .live = .step = Music(): (): (): __name__ == : MainGame().startGame()
老师 为啥我写完后敌方子弹碰到我方坦克后整个画面就卡住不动了呢,也不报错
s="爱你一百遍" ss=s*100 print(ss) #100次循环打印 for i in range(100): print("第%d 次%s"%((i+1),s))
老师 如上面的代码中 print("第%d 次%s"%((i+1),s))1、代码里的%d和%s的作用是干嘛的??能不能解释一下这句代码
2、"第%d 次%s"% 字符串后面怎么还加一个%?
老师,idea怎么找不到相对路径,自己在网上找了一些资料也没搞明白
public class TestVariable {
public static void main(String[] args){
int age=18;
int b; //只是声明了变量b,没有初始化;
int x=0,y=0,z=1;
System.out.println(age);
b = 0; //使用之前,必须初始化!
System.out.println(b);
System.out.println(z);
}
老师这是我写的代码,然后显示的提示的是这样
错误: 仅当显式请求注释处理时才接受类名称 'TestVariable'
1 个错误
E:\mycode>
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637