python 3.7 能使用Tornado,现在python2停止维护了。。。
#coding=utf-8 from tkinter import * from tkinter.colorchooser import * from tkinter.filedialog import * menubar=tk.Menu(root) menudit=Menu(menubar) menudit.add_command(label="剪切") menudit.add_command(label="复制") menubar.add_cascade(label="编辑",menu=menudit) #定义函数使得菜单在鼠标右键单击的坐标处显示 def test(event): menubar.post(event.x_root,y_root) root.bind("<Button-3>",test) root=Tk() root.geometry("200x300") root.mainloop()
老师,这是为啥呀,我照着课件写的呀
老师,我这个文件图片不知道怎么弄
我用IDEA练习这个 项目,但是无法启动成功,错误提示为:
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
我在网上搜索了是ContextLoaderListener类在spring-web.jar包下,检查环境,已经引入了该jar包,可编译器还是报找不到ContextLoaderListener类错误,然后我创建的这个项目在install之后没有Maven Dependencies这个目录,这种情况该怎么办?
请问以上情况该如何处理,我找了好久还是没找到方法?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> ol > li{ color:red; } </style> </head> <body> <ol> <li>我是儿子li标签</li> <p> <li>我是孙子li标签</li> </p> </ol> </body> </html>
老师,上面ol的子代选择器,为什么在更深一层的li选择器中也起作用了,就是上面运行结果是儿子标签和孙子标签都变红了。
这里的url参数就是create_engine后面传的是怎么样的格式
就是这里的DB_URI是固定格式吗?????????
cn.itbaizhanPrint0_130 { (String[] args) { i = (i <= ) { System..println(i + )((i + ) % == ) { System..println()} i++} } }
运行结果却是竖着的:
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Process finished with exit code 0
使用dict(zip(这个只能有两个参数吗???))
老师~我这里加一价钱变为NAN,这是为什么呢....
多线程代码:
平常代码:
问题:
上面的多线程代码需要2秒,下面的需要20秒,老师我有一个疑惑,python中的多线程其实在一个时刻只有拿到锁 的线程才能执行,因此这10个线程 都要执行完sleep()函数,所以按我理解多线程代码也需要20秒,但实际却只要2秒,这是为什么?难道sleep函数有什么特别的地方吗?
资料中缺少老师在视频中的笔记文件。麻烦老师补充提供一下。。
"""扑克牌游戏的界面设计""" from tkinter import * class Application(Frame): def __init__(self, master=None): super().__init__(master) self.master = master self.pack() self.createWidget() def createWidget(self): """通过place布局管理器实现扑克牌位置控制""" # self.photo = PhotoImage(file="puke/puke1.gif") # self.label = Label(self.master, image=self.photo) # self.label.place(x=10, y=50) self.photos = [PhotoImage(file="puke/puke"+str(i+1)+".gif") for i in range(10)] self.labels = [Label(self.master, image=self.photos[i]) for i in range(10)] for i in range(10): self.labels[i].place(x=10+i*40, y=50) # 为所有的label增加事件处理 self.labels[0].bind_class("Label", "<Button-1>", self.chupai) def chupai(self, event): print(event.widget.winfo_geometry()) print(event.widget.winfo_y()) if event.widget.winfo_y() == 50: event.widget.place(y=30) else: event.widget.place(y=50) if __name__ == "__main__": root = Tk() root.geometry("600x270+200+300") root.title("扑克牌游戏界面") app = Application(master=None) root.mainloop() #老师,我的窗口最后关不掉,关掉就会报错
老师你好!我有点不理解这个为什么不这样写
谢谢老师~
这个显卡,安装时也出现了叹号,可以点精简吗
老师__repr__和print有什么区别吗
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637