-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommentaries.py
82 lines (69 loc) · 1.06 KB
/
commentaries.py
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
import sys
from time import sleep
# print(2)
# print(3)
# print(4)
# # 我是你爹
# python = "Python大法好"
# print(python)
# name1 = 5
# name1_1 = 8
# import keyword
#
# # print(keyword.kwlist)
# print(type(5))
# a = '5'
# # int(a)
# print(1+2) #加
# print(2-1)#减
# print(2*3)#乘
# print(9/3)#除
# print(2**3)#乘方
# print(9//4)#取整
# # print(9%4)#取余
# a = 3
# a %= 5
# print(a)
#
# a=[5]
# b='5'
# print(a is b)
# a = 5
# print(1 < a < 8)
#
# a=True
# b=False
# print(a and b)
# print(a or b)
# print(not a)
# content=input("请输入内容")
# print(type(content))
# print(content)
#
# content='1+1'
# tag=eval(content)
# print(type(tag))
# print(tag)
#
# content=input("请输入")
#
# tag=eval(content)
# print(type(tag))
# print(tag)
#
# print(1,8,9,end='9')
# f=open('ceshi.text','w')
# # print(8,9,110,file=sys.fil)
# print(999,end='',flush=False)
# sleep(5)
# name='张林'
# age=24
# newstr="我的名字是%(n)-5s,年龄%(a)d"%({"n":name,"a":age})
#
# print(newstr)
# tag=2
# newstr="%02d"%tag
# print(newstr)
tag=16
newstr="%b"%tag
print(newstr)