简体   繁体   中英

IN Python spyder not showing output in console

There is no output after running the file and I keep getting the same message

runfile('E:/Python/tup.py', wdir='E:/Python')

enter image description here I'm new in python so I don't know what I have done wrong.. Plz help

If you use python shell you can see the variable by calling its name, here in IDE you should use print syntax to see your variable in console.

print(nums[1])

Output:

5

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM