老师这是什么情况,我确定之后还是能正常执行,再打开SQL windows还会跳出来
既然Integer可以直接进行比较,compareto的意义是什么
从资料里复制加载了jar包和DBUTIL程序后,运行程序,报错无法连接到数据库
老师,我看不懂这个输出结果。。。。。。。。。。。。。
老师这电子版文档在哪,下载的word文档和上课的不一样
为什么File.separator不能使用于创建多层目录呢?
文件判断不存在,怎么还能获得路径和文件名呢?
老师,报错,请指正。
源码:
http_server2.rar
import turtle def chessBoard(): turtle.speed(0) for i in range(1, 20): turtle.forward(180) turtle.penup() turtle.goto(0, -(i*10)) turtle.pendown() turtle.goto(0, 0) turtle.right(90) for n in range(1, 20): turtle.forward(180) turtle.penup() turtle.goto((n*10), 0) turtle.pendown() # 将横线参数改为19 # turtle.penup() # turtle.goto(0,-180) # turtle.pendown() # turtle.left(90) # turtle.forward(180) turtle.done() chessBoard()
python版本3.7
请问老师怎么将左下角的多出来的线段去掉,通过更改循环参数的方式。以及为什么会多出这一小段
我的一种做法是把横着的线少画一条,最后再画最后一条横线去解决这个问题。
import copy def employeeSalary(): salary = [] sum = 0 while True: enter = input("Enter your salary, please (press Q or q to finish the programme) : ") num = copy.deepcopy(enter) #这里出现了错误,我想对input的做一个判断如果不是Q或者q的话就把它转型成float类型进行比较 #请问一下应该怎么更改 python版本是3.7谢谢老师 if enter != "q" or enter != "Q": num = float(num) continue elif enter == "q" or enter == "Q": print("The programme is finished.") break elif num < 0: int(input("The salary of employee should not lower than 0, reenter the salary, please! : ")) elif num >= 0: salary.append(num) sum += num for i in salary: print("The employee salary is :", i) print("The number of employee is {0}, and the average of the employee salary is {1}".format(len(salary), sum/(len(salary)+1))) employeeSalary()
提问:
这里选择浏览器图标是灰色,点不了,该怎么设置啊?
老师这个错了吧。。。关键字是void??
请问一下我用 空格的问题
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>第一个网页程序</title> </head> <body><h1 align="center">第一次</h1> <hr width = "500px", color="red", align="left", size = "20px"/> <p> 创建一个网页的三大基石?<br /> 网页的美化 </p> <pre>故事开始了! 第一次 起风了!</pre> </body> </html>
怎么用了六个 ;才空两格?
分页查询:
Top-N分析:
select rownum,last_name,salary from (select last_name,salary from employees order by salary desc) where rownum<=3;
发的资料里面,在分页查询中说先进行where子句后才生成rownum,然后在top-n分析中如果先进行where子句,再生成的rownum就无法再被where子句来限定大小了,我觉得就不会只输出三行,但事实上是输出三行的,这要怎么理解呢?
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637