```
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> help(input)
SyntaxError: invalid character '(' (U+FF08)
>>> help(input)
Help on built-in function input in module builtins:
input(prompt=None, /)
Read a string from standard input. The trailing newline is stripped.
The prompt string, if given, is printed to standard output without a
trailing newline before reading input.
If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
On *nix systems, readline is used if available.
>>> input(:)
SyntaxError: invalid syntax
>>> input(':')
''
>>> input()
''
>>> a =input()
jlkjkjj刘会计会计会计
>>> a
'jlkjkjj刘会计会计会计'
>>> int(a)
Traceback (most recent call last):
File "<pyshell#7>", line 1, in <module>
int(a)
ValueError: invalid literal for int() with base 10: 'jlkjkjj刘会计会计会计'
>>> ValueError: invalid literal for int() with base 10: 'jlkjkjj刘会计会计会计'
```
```
record = []
while True:
info = []
userInput = input('Enter something: ')
if userInput == "exit":
break
else:
info=userInput.split(",")
#info=userInput
print(info)
record+=[info]
print(record)
```
```
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> raw_input()
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
raw_input()
NameError: name 'raw_input' is not defined
>>> input()
5
'5'
>>> a = input()
9
>>> b = a**5
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
b = a**5
TypeError: unsupported operand type(s) for ** or pow(): 'str' and 'int'
>>> a
'9'
>>> b = int(a)**5
>>> b
59049
>>> a = input()
改好发的黑寡妇黑寡妇黑寡妇黑寡妇黑寡妇黑寡妇韩国
>>> for i in a
SyntaxError: invalid syntax
>>> for i in a:
i
'改'
'好'
'发'
'的'
'黑'
'寡'
'妇'
'黑'
'寡'
'妇'
'黑'
'寡'
'妇'
'黑'
'寡'
'妇'
'黑'
'寡'
'妇'
'黑'
'寡'
'妇'
'韩'
'国'
>>>
```
```
for i in input():
print (i)
```
```
print(int(eval(input())))
```
- py转exe
- py服务器
- py登录
- py查询
- 爬TB热卖1017
- 爬TB分类1015
- 爬BD文库1010
- 爬文库924
- json917
- decode912
- 转码910
- radians829
- turtle827
- 画叶子820
- 树干815
- Turtle, mainloop718
- sorted716
- random711
- turtle.colormode709
- abs704
- begin_fill702
- randint,random627
- isalpha625
- keyword620
- compile618
- judge613
- list1.copy611
- random.choice606
- format_randint604
- save_csv528
- jieba523
- wordcloud521
- wordcloud516
- jieba.lcut514
- counts503
- format423
- 花瓣418
- strftime416
- turtle.fillcolor411
- random.random409
- pensize404
- 花蕊328
- input327
- eval_float320
- open319
- while314
- JCR影响因子313
- _to_chinese4_312
- encoding306
- read305
- flask1029