-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhello.py
More file actions
70 lines (49 loc) · 892 Bytes
/
hello.py
File metadata and controls
70 lines (49 loc) · 892 Bytes
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
#! /usr/bin/python
#import Tkinter
from Tkinter import *
def G_Show_Me(name):
print name
class Base:
name = "kevin"
myid = 10
@staticmethod
def Prinf_ID(self):
print self.myid
def __init__(self):
self.name = "none"
def __del__(self):
print "destroy Base class"
def init_class(self,name):
self.name = name
def show_name(self):
print self.name
print "hello the world"
d = 4
name = 'kevin'
for i in range(0,d):
if i == 2:
print name,"~",i
for c in name:
print c
print "be careful"
for j in range(5,10+1,1):
print j
if name == 'kevin':
print "kevin"
else:
print "bad"
i = 0
while i<=5:
print i
i = i + 1
base = Base()
base.show_name()
base.init_class("veer")
base.show_name()
Base.Prinf_ID(base)
G_Show_Me("I am the Kind of world")
root = Tk()
root.geometry('400x300')
label = Label(root,text="hello the world")
label.pack()
root.mainloop()