### 一、input（）函数

``name=input('请从 ABCD 中选择你要娶的姑娘：') print(name) #D``

### 二、input（）赋值

``answer = input('请从 ABCD 中选择你要娶的姑娘：')``

``answer = input('请从 ABCD 中选择你要娶的姑娘：')print(answer)``

### 三、input（）类型

``answer = input('秋香的生日是8月几号？') if answer == 15:   print('答对了，我同意这门亲事') else:   print('生日都说错了？秋香不能嫁给你')``

`if` 语句中的判定条件是 `answer == 15`，注意，右端的 `15` 是一个整数，所以，进入 `if` 分支的条件就是：变量 `answer` 中储存的数据等于 整数 `15`

``price =int(input('请输入冰糖葫芦的价格：')) if price < 15:   print('买一根吧') else:   print('不买了') #输入15 #输出15``
{"ft_lang_label":"__label__zh","ft_lang_prob":0.9330365,"math_prob":0.97755116,"size":1063,"snap":"2023-40-2023-50","text_gpt3_token_len":733,"char_repetition_ratio":0.19169028,"word_repetition_ratio":0.032,"special_character_ratio":0.3010348,"punctuation_ratio":0.02631579,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9942999,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-22T12:43:04Z\",\"WARC-Record-ID\":\"<urn:uuid:5c16e98b-48a0-4b7a-8bdc-5e1a737d32b1>\",\"Content-Length\":\"38381\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1c7cc0c6-f9ef-4214-bb3c-218f1ea90421>\",\"WARC-Concurrent-To\":\"<urn:uuid:0dcfa2e7-4583-4c91-b512-8f60733e8aec>\",\"WARC-IP-Address\":\"173.208.203.124\",\"WARC-Target-URI\":\"http://www.pythonbj.com/archives/3137\",\"WARC-Payload-Digest\":\"sha1:LZWHOTZF4BTJNCMT2VZU2KHP7UH7JQXQ\",\"WARC-Block-Digest\":\"sha1:ATVPC6MXELTYJBRA4UIFKHUHBPJXJ3F6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506399.24_warc_CC-MAIN-20230922102329-20230922132329-00712.warc.gz\"}"}