输出

>>> print(5)
5
>>> print(5*6)
30
>>> s1 = "hello"
>>> print(s1)
hello
>>> print("hello")
hello
>>> print(5, s1)
5 hello
>>> print("My age is 5")
My age is 5
>>> age = 5
>>> print("My age is %d" % age)
My age is 5

输入

<br/><br/>
>>> a = input()
1
>>> a
'1'
>>> a = input("please enter your name:")
please enter your name:jwang106
>>> a
'jwang106'
```]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2021-08-26
猜你喜欢
  • 2021-05-19
  • 2021-07-07
  • 2021-09-13
  • 2022-02-01
  • 2021-09-07
  • 2021-11-03
相关资源
相似解决方案