Discuss / Python / 作业

作业

Topic source

JasF

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

-- coding: utf-8 --

import time

n1 = 255 n2 = 1000

n = 1 while 1: if n == 1: time.sleep(0.5) print('N1:'+ hex(n1)) n = 0 else: time.sleep(1) print('N2:'+ hex(n2)) n = 1


  • 1

Reply