Discuss / Python / 作业

作业

Topic source

Geek_MrHowe

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

作业

# -*- coding: utf-8 -*-
# 函数调用
n1 = 255
n2 = 1000
print('\tname\t十进制\t十六进制')
print("\tn1\t%d\t%s\n\tn1\t%d\t%s"% (n1,hex(n1),n2,hex(n2)))

ZLF飞

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

有个n1应该是n2?

n1 = 255
n2 = 1000
print('\tname\t十进制\t十六进制')
print("\tn1\t%s\t%s\n "% (n1,hex(n1))) 
print("\tn2\t%s\t%s\n "% (n2,hex(n2)))

  • 1

Reply