擅长:python、mysql、java
<p>试试这个</p>
<pre><code>input_data = []
for i in range(0, n):
print("Enter the details of User %d" % (i + 1))
name = input("Enter the name of the user:\n")
mno = int(input("Enter the mobile number of the user:\n"))
uname = input("Enter the username of the user:\n")
pswd = input("Enter the password of the user:\n")
input_data.append({
"name": name,
"mno": mno,
"uname": uname,
"pswd": pswd,
})
print(input_data)```
</code></pre>