Discuss / Python / 交作业

交作业

Topic source

longtometosee

#1 Created at ... [Delete] [Delete and Lock User]

R=[255,1000]

i=0

while i<len(R):

    print('"%s"' % hex(R[i]))

    i=i+1

R=[255,1000]

for x in R:

    print("'{}'".format(hex(x)))

秀!


  • 1

Reply