模块二问题
2018-08-01 14:25 冻奶香甜玉米片 阅读(140) 评论(0) 编辑 收藏 举报luffy = "the king of sea." def test1(): print(luffy) luffy = 'e'
为什么会报
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/untitled/myPro/day30/模块二练习题.py", line 54, in <module>
test1()
File "C:/Users/Administrator/PycharmProjects/untitled/myPro/day30/模块二练习题.py", line 52, in test1
print(luffy)
UnboundLocalError: local variable 'luffy' referenced before assignment
不是直接往上找就完事了吗?print(luffy) 这一行怎么知道下面的错误?下面报错不奇怪
描述写硬盘的编码转变(UTF-8格式,系统格式GBK)
十六进制和二进制分别用在什么地方