python-3.x - 为什么我的程序有“IndentationError: unindent does not match any external indentation level”?
问题描述
我只是想为一个更大的项目运行一个测试代码,但在中途我得到了这个错误。这是我的代码,我只是希望它可以正常工作。
name=[]
call=[]
position=[]
time=[]
count=0
while True:
x=[]
x=input('').split(' ')
if x[0]=='END':
break
elif x[0]=='InsertU':
name.append(x[2])
call.append(x[1])
position.apend('0')
time.append('0')
elif x[0]=='InsertL':
for item in call:
if item==x[1]:
position[call.index(x[1])]=(x[2]+x[3])
name[call.index(x[1])]=(x[4])
print(name)
print(call)
print(position)
print(time)
解决方案
推荐阅读
- android - React Native - 在 bundleRelease 之后 react-native run-android 不工作
- android - 没有使用 Firestore 分页适配器获取模型类中的所有值?
- javascript - 无法使用 javascript/jquery 在输入框中生成鼠标单击事件
- c - 我无法显示最大 PSI 值的对应区域
- google-maps-api-3 - 有没有办法使用 Google Maps API 在路线内查找城市?
- android - 如何通过 adb 命令在 android kitkat 9 上使用 google play music 播放 mp3 文件?
- java - 如何使用java将变量值传递到json文件中
- laravel - “SQLSTATE [HY000] [1045] 用户'root'@'localhost'的访问被拒绝:Laravel 5.3
- amazon-cloudformation - 使用 cloudformation 向 api 添加参数
- linux - 如何在 i3wm 中启动 viber?