How to get to a new line in Python Shell?

前端 未结 7 1682
孤独总比滥情好
孤独总比滥情好 2021-02-02 11:20

In IDLE, say i want to write the following in TWO lines:

x = 3

print x**5

but when i type x = 3 and press enter, it executes the assignment. H

7条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 11:40

    x = 3; print x ** 5
    

    should help, but it doesnt matter that its executed the way it is in IDLE.

提交回复
热议问题