(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\Angel>python
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.ps1
‘>>> ‘
>>> sys.ps2
‘... ‘
>>> sys.ps1 = "开始写代码吧->"
开始写代码吧->sys.ps2 = "->->->->->"
开始写代码吧->def fun():
->->->->-> print("hello world")
->->->->->
开始写代码吧->fun()
hello world
开始写代码吧->```
原文:https://www.cnblogs.com/whx2008/p/12616554.html