鍓嶇 http鍗忚 鍥涘ぇ鐗规€? web鏈川 -鍝嶅簲鐘舵€佺爜 鍒楄〃鏍囩 琛ㄥ崟鎿嶄綔 form琛ㄥ崟 # 44
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了鍓嶇 http鍗忚 鍥涘ぇ鐗规€? web鏈川 -鍝嶅簲鐘舵€佺爜 鍒楄〃鏍囩 琛ㄥ崟鎿嶄綔 form琛ㄥ崟 # 44相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/%e7%8a%b6%e6%80%81%e7%a0%81' title='鐘舵€佺爜'>鐘舵€佺爜 鐣岄潰 榛樿 com option 瀵嗘枃 蹇呴』 idt ide
1.鍓嶇绠€浠?/h1>
1 """"""
2 """鍓嶇:"""
3 """鍜宲ython娌℃湁浠讳綍鍏崇郴"""
4
5 1.浠€涔堟槸鍓嶇?
6 浠讳綍涓庣敤鎴风洿鎺ユ墦浜ら亾鐨勬搷浣滅晫闈㈤兘鍙互绉颁箣涓哄墠绔?
7 姣斿 : 鐢佃剳鐣岄潰 鎵嬫満鐣岄潰 骞虫澘鐣岄潰
8
9 2.浠€涔堟槸鍚庣?
10 鏆傛椂鍏堢悊瑙f垚,骞曞悗鎿嶄綔鑰?
11 涓嶇洿鎺ヤ笌鐢ㄦ埛鎵撲氦閬?
12
13 3.涓轰粈涔堣瀛﹀墠绔?
14 鍥犱负鎴戜滑鏄叏鏍堝紑鍙戝伐绋嬪笀
1.鍓嶇
1 鑷埗鍔?
2
3 鏉ヨ€佺敺瀛╁涔犵殑蹇冭矾鍘嗙▼
4 1.淇″績婊℃弧 鑰佸瓙涓€瀹氳兘瀛︿細 鍑暐瀛︿笉浼?
5 2.鍝庡懄鍗фЫ 濂藉儚鏈夌偣闅?鍙兘瀛︿笉浼?
6 3.鎴戦潬 鎬庝箞杩樹笉姣曚笟 鑰佸瓙瑕佸嚭鍘绘專澶ч挶
7 4.鍗фЫ 鎬庝箞姣曚笟浜?鎴戝暐閮戒笉浼?/pre>
2.瀛︿範蹇冩€?/span>
1 杞欢寮€鍙戞灦鏋?
2 c/s
3 b/s
4
5 1.web(浜掕仈缃?鏈嶅姟鐨勬湰璐?
6 娴忚鍣ㄤ腑鏁插叆缃戝潃鍥炶溅鍙戠敓浜嗗嚑浠朵簨?
7 1.娴忚鍣ㄥ悜鏈嶅姟绔彂閫佽姹?
8 2.鏈嶅姟绔帴鏀惰姹?
9 3.鏈嶅姟绔繑鍥炵浉搴旂殑鍝嶅簲
10 4.娴忚鍣ㄦ帴鏀跺搷搴?鏍规嵁鐗瑰畾鐨勮鍒?娓叉煋椤甸潰灞曠ず缁欑敤鎴风湅
11
12 2.HTTP鍗忚:
13 瓒呮枃鏈紶杈撳崗璁?
14 瑙勫畾浜嗘祻瑙堝櫒鍜屾湇鍔$涔嬮棿娑堟伅浼犺緭鐨勬暟鎹牸寮?
15
16 3.HTTP鍗忚鍥涘ぇ鐗规€?
17 1.鍩轰簬璇锋眰鍝嶅簲
18 2.鍩轰簬TCP/IP涔嬩笂鐨勪綔鐢ㄤ簬搴旂敤灞傜殑鍗忚
19 3.鏃犵姸鎬?鏈嶅姟绔棤娉曚繚瀛樼敤鎴风殑鐘舵€?涓€涓汉鏉?000娆?鎴戦兘璁颁笉浣?杩樺綋浣犲鍒濊)
20 4.鏃犺繛鎺?璇锋眰鏉ヤ竴娆℃垜鍝嶅簲涓€娆?,涔嬪悗绔嬮┈鏂紑杩炴帴,涓よ€呬箣闂村氨涓嶅湪鏈変换浣曞叧绯讳簡)
21
22 websocket (浜掕仈缃戝鎺ュ瓧) 鐩稿綋浜庢槸HTTP鍗忚鐨勪竴涓ぇ鐨勮ˉ涓?浠栨敮鎸侀暱杩炴帴
23
24 4.璇锋眰鏁版嵁鏍煎紡:
25 璇锋眰棣栬(鏍囪瘑HTTP鍗忚鐗堟湰,褰撳墠璇锋眰鏂瑰紡)
26 璇锋眰澶?涓€澶у爢k,v閿€煎)
27 璇锋眰浣?鎼哄甫涓€浜涙晱鎰熶俊鎭?姣斿:瀵嗙爜,韬唤璇佸彿...)
28
29 5.鍝嶅簲鏁版嵁鏍煎紡:
30 鍝嶅簲棣栬(鏍囪瘑HTTP鍗忚,鍝嶅簲鐘舵€佺爜)
31 鍝嶅簲澶?涓€澶у爢k,v閿€煎)
32 鍝嶅簲浣?杩斿洖缁欐祻瑙堝櫒椤甸潰鐨勬暟鎹?閫氬父鍝嶅簲浣撻兘鏄痟tml椤甸潰)
33
34 6.鍝嶅簲鐘舵€佺爜:
35 鐢ㄤ竴浜涚畝鍗曠殑鏁板瓧鏉ヨ〃绀轰竴浜涘鏉傜殑鐘舵€佹垨鑰呮彁绀轰俊鎭?
36 1XX:鏈嶅姟绔凡缁忔垚鍔熸帴鏀朵簡浣犵殑鏁版嵁姝e湪澶勭悊,浣犲彲浠ョ户缁彁浜ら澶栫殑鏁版嵁
37 2XX:鏈嶅姟绔垚鍔熷搷搴?浣犳兂瑕佺殑鏁版嵁(璇锋眰鎴愬姛200)
38 3XX:閲嶅畾鍚?褰撲綘鍦ㄨ闂竴涓渶瑕佺櫥闄嗕箣鍚庢墠鑳借闂殑椤甸潰 浣犱細鍙戠幇绐楀彛浼氳嚜鍔ㄨ皟鏁村埌鐧诲綍椤甸潰 301,302)
39 4XX:璇锋眰閿欒(璇锋眰璧勬簮涓嶅瓨鍦?04,璇锋眰涓嶅悎娉曚笉绗﹀悎鍐呴儴瑙勫畾浼氭潈闄愪笉澶?403)
40 5XX:鏈嶅姟鍣ㄥ唴閮ㄩ敊璇?500)
41
42 7.璇锋眰鏂瑰紡:
43 1.get璇锋眰:
44 鏈?鏈嶅姟鍣?瑕?璧勬簮 (姣斿娴忚鍣ㄧ獥鍙?杈撳叆www.baidu.com)
45 2.post璇锋眰:
46 鏈濈潃 鏈嶅姟绔?鎻愪氦鏁版嵁(姣斿鐢ㄦ埛鐧婚檰,鎻愪氦鐢ㄦ埛鍚嶅拰瀵嗙爜)
47
48 URL:缁熶竴璧勬簮瀹氫綅绗?澶х櫧璇?灏辨槸缃戝潃)
3.鍓嶇閲嶇偣姒傚康 web鏈嶅姟鐨勬湰璐?http鍗忚 鍥涘ぇ鐗规€?璇锋眰鏁版嵁鏍煎紡 鍝嶅簲鏁版嵁鏍煎紡 鍝嶅簲鐘舵€佺爜 璇锋眰鏂瑰紡
1 """""" 2 """鍓嶇:""" 3 """鍜宲ython娌℃湁浠讳綍鍏崇郴""" 4 5 1.浠€涔堟槸鍓嶇? 6 浠讳綍涓庣敤鎴风洿鎺ユ墦浜ら亾鐨勬搷浣滅晫闈㈤兘鍙互绉颁箣涓哄墠绔? 7 姣斿 : 鐢佃剳鐣岄潰 鎵嬫満鐣岄潰 骞虫澘鐣岄潰 8 9 2.浠€涔堟槸鍚庣? 10 鏆傛椂鍏堢悊瑙f垚,骞曞悗鎿嶄綔鑰? 11 涓嶇洿鎺ヤ笌鐢ㄦ埛鎵撲氦閬? 12 13 3.涓轰粈涔堣瀛﹀墠绔? 14 鍥犱负鎴戜滑鏄叏鏍堝紑鍙戝伐绋嬪笀
1 鑷埗鍔? 2 3 鏉ヨ€佺敺瀛╁涔犵殑蹇冭矾鍘嗙▼ 4 1.淇″績婊℃弧 鑰佸瓙涓€瀹氳兘瀛︿細 鍑暐瀛︿笉浼? 5 2.鍝庡懄鍗фЫ 濂藉儚鏈夌偣闅?鍙兘瀛︿笉浼? 6 3.鎴戦潬 鎬庝箞杩樹笉姣曚笟 鑰佸瓙瑕佸嚭鍘绘專澶ч挶 7 4.鍗фЫ 鎬庝箞姣曚笟浜?鎴戝暐閮戒笉浼?/pre>
1 杞欢寮€鍙戞灦鏋? 2 c/s 3 b/s 4 5 1.web(浜掕仈缃?鏈嶅姟鐨勬湰璐? 6 娴忚鍣ㄤ腑鏁插叆缃戝潃鍥炶溅鍙戠敓浜嗗嚑浠朵簨? 7 1.娴忚鍣ㄥ悜鏈嶅姟绔彂閫佽姹? 8 2.鏈嶅姟绔帴鏀惰姹? 9 3.鏈嶅姟绔繑鍥炵浉搴旂殑鍝嶅簲 10 4.娴忚鍣ㄦ帴鏀跺搷搴?鏍规嵁鐗瑰畾鐨勮鍒?娓叉煋椤甸潰灞曠ず缁欑敤鎴风湅 11 12 2.HTTP鍗忚: 13 瓒呮枃鏈紶杈撳崗璁? 14 瑙勫畾浜嗘祻瑙堝櫒鍜屾湇鍔$涔嬮棿娑堟伅浼犺緭鐨勬暟鎹牸寮? 15 16 3.HTTP鍗忚鍥涘ぇ鐗规€? 17 1.鍩轰簬璇锋眰鍝嶅簲 18 2.鍩轰簬TCP/IP涔嬩笂鐨勪綔鐢ㄤ簬搴旂敤灞傜殑鍗忚 19 3.鏃犵姸鎬?鏈嶅姟绔棤娉曚繚瀛樼敤鎴风殑鐘舵€?涓€涓汉鏉?000娆?鎴戦兘璁颁笉浣?杩樺綋浣犲鍒濊) 20 4.鏃犺繛鎺?璇锋眰鏉ヤ竴娆℃垜鍝嶅簲涓€娆?,涔嬪悗绔嬮┈鏂紑杩炴帴,涓よ€呬箣闂村氨涓嶅湪鏈変换浣曞叧绯讳簡) 21 22 websocket (浜掕仈缃戝鎺ュ瓧) 鐩稿綋浜庢槸HTTP鍗忚鐨勪竴涓ぇ鐨勮ˉ涓?浠栨敮鎸侀暱杩炴帴 23 24 4.璇锋眰鏁版嵁鏍煎紡: 25 璇锋眰棣栬(鏍囪瘑HTTP鍗忚鐗堟湰,褰撳墠璇锋眰鏂瑰紡) 26 璇锋眰澶?涓€澶у爢k,v閿€煎) 27 璇锋眰浣?鎼哄甫涓€浜涙晱鎰熶俊鎭?姣斿:瀵嗙爜,韬唤璇佸彿...) 28 29 5.鍝嶅簲鏁版嵁鏍煎紡: 30 鍝嶅簲棣栬(鏍囪瘑HTTP鍗忚,鍝嶅簲鐘舵€佺爜) 31 鍝嶅簲澶?涓€澶у爢k,v閿€煎) 32 鍝嶅簲浣?杩斿洖缁欐祻瑙堝櫒椤甸潰鐨勬暟鎹?閫氬父鍝嶅簲浣撻兘鏄痟tml椤甸潰) 33 34 6.鍝嶅簲鐘舵€佺爜: 35 鐢ㄤ竴浜涚畝鍗曠殑鏁板瓧鏉ヨ〃绀轰竴浜涘鏉傜殑鐘舵€佹垨鑰呮彁绀轰俊鎭? 36 1XX:鏈嶅姟绔凡缁忔垚鍔熸帴鏀朵簡浣犵殑鏁版嵁姝e湪澶勭悊,浣犲彲浠ョ户缁彁浜ら澶栫殑鏁版嵁 37 2XX:鏈嶅姟绔垚鍔熷搷搴?浣犳兂瑕佺殑鏁版嵁(璇锋眰鎴愬姛200) 38 3XX:閲嶅畾鍚?褰撲綘鍦ㄨ闂竴涓渶瑕佺櫥闄嗕箣鍚庢墠鑳借闂殑椤甸潰 浣犱細鍙戠幇绐楀彛浼氳嚜鍔ㄨ皟鏁村埌鐧诲綍椤甸潰 301,302) 39 4XX:璇锋眰閿欒(璇锋眰璧勬簮涓嶅瓨鍦?04,璇锋眰涓嶅悎娉曚笉绗﹀悎鍐呴儴瑙勫畾浼氭潈闄愪笉澶?403) 40 5XX:鏈嶅姟鍣ㄥ唴閮ㄩ敊璇?500) 41 42 7.璇锋眰鏂瑰紡: 43 1.get璇锋眰: 44 鏈?鏈嶅姟鍣?瑕?璧勬簮 (姣斿娴忚鍣ㄧ獥鍙?杈撳叆www.baidu.com) 45 2.post璇锋眰: 46 鏈濈潃 鏈嶅姟绔?鎻愪氦鏁版嵁(姣斿鐢ㄦ埛鐧婚檰,鎻愪氦鐢ㄦ埛鍚嶅拰瀵嗙爜) 47 48 URL:缁熶竴璧勬簮瀹氫綅绗?澶х櫧璇?灏辨槸缃戝潃)
2.html 鏍囩
1 1.HTML 鏍囩 2 瓒呮枃鏈爣璁拌瑷€ 3 瑕佹兂璁╀綘鐨勯〉闈㈣兘澶熸甯歌椤甸潰鏄剧ず鍑烘潵 ,浣犳墍鍐欑殑椤甸潰 ,灏卞繀椤婚伒寰?HTML 鏍囪璇硶 4 涔熷氨鎰忓懗鐫€ 鎵€鏈夎兘琚祻瑙堝櫒鏄剧ず鍑烘潵鐨勯〉闈?鍐呴儴閮芥槸HTML浠g爜 5 6 ps:娴忚鍣ㄥ彧璁よ瘑 html css js 7 8 2.web 鏈川 9 娴忚鍣? 10 鏈嶅姟鍣? 11 鏂囦欢(鍚庣紑鍚嶆槸 .html缁撳熬鐨勬枃浠?,涔熷氨鎰忓懗鐫€ 鍙鐪嬪埌 .html缁撳熬鏂囦欢 閭d箞瀹冨氨鏄竴涓墠绔〉闈㈡枃浠? 12 鏂囦欢鐨勫悗缂€鍚?浠呬粎鏄粰浜虹湅鐨?璁$畻鏈烘槸鏃犳墍璋撶殑 鍥犱负閮芥槸浜岃繘鍒舵暟鎹? 13 14 3.HTML娉ㄩ噴 15 鍐欑綉椤电殑涓€濂楁爣鍑? 16 17 娉ㄩ噴鏄唬鐮佷箣姣? 18 <!--鍗曡娉ㄩ噴--> 19 <!-- 20 澶氳娉ㄩ噴 21 澶氳娉ㄩ噴 22 --> 23 涓€鑸儏鍐典笅 html 鐨勬敞閲婇兘浼氭寜鐓т笅闈㈢殑鏂瑰紡涔﹀啓 24 <!--瀵艰埅鏉℃牱寮忓紑濮?-> 25 <!--瀵艰埅鏉℃牱寮忕粨鏉?-> 26 27 HTML 鏂囨。缁撴瀯 28 <html> 29 <head></head>:head(澶?鍐呯殑鏍囩 涓嶆槸鐢ㄦ潵灞曠ず缁欑敤鎴风湅鐨?鑰屾槸瀹氫箟涓€浜涢厤缃?涓昏鏄粰娴忚鍣ㄧ湅鐨? 30 31 <body></body>:body(鍐呭)鍐呯殑鏍囩 灏辨槸娴忚鍣ㄥ睍绀虹粰鐢ㄦ埛鐪嬬殑鍐呭 32 33 </html> 34 35 4.鎵撳紑html椤甸潰鐨勪袱绉嶆柟寮? 36 1.鎵惧埌鏂囦欢璺緞 閫夋嫨娴忚鍣ㄦ墦寮€ 37 2.pycharm蹇嵎鏂瑰紡鐩存帴鎵撳紑 38 39 5.鏍囩鐨勫垎绫?: 40 1.鍙屾爣绛?<h1></h1> <a></a>) 41 2.鍗曟爣绛?鑷棴鍚堟爣绛?<img/> <hr> <br>) 42 43 6.head鍐呭父鐢ㄦ爣绛? 44 title 鐢ㄦ潵鏄剧ず 缃戦〉 鏍囬 45 style 鐢ㄦ潵鎺у埗鏍峰紡鐨?鍐呴儴鏀寔鍐檆ss浠g爜 -- 鍐呰仈寮? 46 script(鑴氭湰) 鍐呴儴鏀寔鍐?js浠g爜 涔熸敮鎸?瀵煎叆澶栫晫鐨刯s鏂囦欢 47 link 涓撻棬鐢ㄦ潵寮曞叆澶栫晫鐨刢ss鏂囦欢 -- 澶栬仈寮? 48 49 7.鏍囩鐨勫垎绫?: 50 1.鍧楀効绾ф爣绛?鐙崰娴忚鍣ㄤ竴琛? 51 div p(娈佃惤) h(鏍囬) 52 1.蹇効绾ф爣绛惧彲浠ヤ慨鏀归暱搴? 53 2.蹇効绾ф爣绛惧唴閮ㄥ彲浠ュ祵濂椾换鎰忓緱鍧楀効绾?鏍囩 54 ps: 55 浣嗘槸p 鏍囩铏界劧鏄潡鍎跨骇鏍囩 浣嗕粬涓嶈兘澶熷祵濂楀叾浠栧潡鍎跨骇鏍囩,鍖呮嫭浠栬嚜韬? 56 鍙互宓屽琛屽唴鏍囩 57 58 鎬荤粨: 59 1.鍙鍧楀効绾ф爣绛?閮藉彲浠ュ祵濂楄鍐呮爣绛? 60 2.p 鏍囩鍙兘宓屽琛屽唴 ,鍏朵粬鍧楀効绾у彲浠ュ祵濂椾换鎰忕殑鍧楀効绾ф爣绛? 61 2.琛屽唴鏍囩(鑷韩鏂囨湰澶氬ぇ灏卞崰澶氬ぇ) 62 span b(鍔犵矖) s(鍒犻櫎) i(鏂滀綋) u(鍦ㄦ枃鏈笅闈㈡坊鍔犱笅鍒掔嚎) 63 div 鍜?span 閫氬父閮芥槸鐢ㄦ潵鏋勫缓缃戦〉甯冨眬鐨? 64 65 8.body鍐呭父鐢ㄦ爣绛? 66 鍩烘湰鏍囩 67 h鏍囩:鏍囬鏍囩 68 p娈佃惤:娈佃惤鏍囩 69 绗﹀彿: 70 甯哥敤鏍囩: 71 div 72 span 73 p 74 img src 瀛樻斁鐨勬槸鍥剧墖鐨勮矾寰?璇ヨ矾寰勫彲浠ユ槸鏈湴鐨?涔熷彲浠ユ槸缃戜笂鐨? 75 1.涔熷彲浠ユ斁url(缃戝潃)(浼氳嚜鍔ㄨ姹傝url鑾峰彇鐩稿簲鏁版嵁) 76 2.涔熷彲浠ョ洿鎺ユ斁鍥剧墖鐨勪簩杩涘埗鏁版嵁 浼氳嚜鍔ㄨ浆鎹㈡垚鍥剧墖 77 78 alt : 褰撳浘鐗囧姞杞戒笉鍑烘潵鐨勬椂鍊?鏄剧ず鎻愮ず淇℃伅 79 title:褰撻紶鏍囨偓娴湪鍥剧墖涓婃椂,鎻愮ず鐨勪俊鎭? 80 height,width 褰撲綘鍙寚瀹氫竴涓弬鏁版椂 鍙︿竴涓細绛夋瘮渚嬬缉鏀? 81 82 a href 鍚庨潰瀛樻斁url 鐨勬椂鍊?鐐瑰嚮璺宠浆鍒拌url 83 濡傛灉璇ラ摼鎺ユ病鏈夎鐐瑰嚮杩?,閭d箞榛樿鏄摑鑹?鍙鐐硅繃涓€娆?,涔嬪悗閮芥槸绱壊 84 85 target 榛樿鏄痏self 褰撳墠椤甸潰璺宠浆 86 _blank鏂板缓椤甸潰璺宠浆 87 88 閿氱偣鍔熻兘(鍥炲埌椤堕儴) 89 href 杩樺彲浠ュ啓鍙︿竴涓猘鏍囩鐨刬d鍊?,鐐瑰嚮灏变細璺宠浆鍒癷d鍊兼墍瀵瑰簲鐨勭殑a 鏍囩 90 91 9.姣忎釜鏍囩閮藉簲璇ユ湁鐨勪笁涓瘮杈冮噸瑕佸睘鎬? 92 1.id鍊?璇ュ€煎氨绫讳技涓庝汉鐨勮韩浠借瘉鍙?鍦ㄧ敤涓€涓猦tml鏂囨。 id 搴旇淇濊瘉鍞竴涓嶉噸澶? 93 2.class鍊? 璇ュ€煎氨绫讳技浜庨潰鍚戝璞¢噷闈㈢殑缁ф壙 鍙互鍐欏涓? 94 3.style(涓嶆槸蹇呭) 鏀寔鍦ㄦ爣绛惧唴鐩存帴鍐檆ss浠g爜 灞炰簬琛屽唴鏍峰紡 浼樺厛绾ф渶楂? 95 96 琛ュ厖 浠讳綍鏍囩閮芥敮鎸佽嚜瀹氫箟灞炴€? 97 98 99 浜嗚В: 100 1.emmet鎻掍欢 101 2.闃插憜鎺柦
1 鍒楄〃鏍囩: 2 1.琛ㄦ牸鏍囩 3 <table> 4 <thead></thead> 5 <tbody></tbody> 6 </table> 7 8 tr 琛ㄧず涓€琛? 9 th 鍜?td閮芥槸鏂囨湰 10 寤鸿鍦╰head 鐢?th 11 tbody 鍐呯敤 td 12 colspan 琛ㄧず姘村钩鏂瑰悜 13 rowspan 琛ㄧず绔栫洿鏂瑰悜 14 15 2.琛ㄥ崟鏍囩 16 鑳藉鎺ユ敹鐢ㄦ埛杈撳叆(杈撳叆 閫夋嫨 涓婁紶)骞跺皢鍏跺彂閫佺粰鍚庣 17 18 浠ユ敞鍐屽疄渚嬭瑙orm琛ㄥ崟 19 20 action 鎺у埗鏁版嵁鎻愪氦鐨勭洰鐨勫湴 21 1.涓嶅啓鎯呭喌涓?榛樿鎻愪氦鍒板綋鍓嶉〉闈㈡墍鍦ㄨ矾寰? 22 2.鍐欏叏璺緞(https://www.baidu.com) 23 3.璺緞鍚庣紑(/index/) 24 25 input 鏍囩灏辩被浼间簬鍓嶇鍙樺舰閲戝垰 26 type 27 text:鏅€氭枃鏈? 28 password:瀵嗘枃 ,涓嶅睍绀洪摥鏂? 29 date:鏃ユ湡 30 submit:瑙﹀彂鎻愬墠鍔ㄤ綔 31 button:鏅€氭寜閽?娌℃湁瀹為檯鎰忎箟 32 浣嗗彲浠ラ€氳繃js缁戝畾浜嬩欢瀹炵幇鑷畾涔夊姩浣? 33 reset :閲嶇疆琛ㄥ崟鍐呭 34 radio:鍗曢€? 鍙互閫氳繃checked鎺у埗榛樿閫夋嫨 35 (褰撳睘鎬у€煎拰灞炴€у悕鐩稿悓鐨勬儏鍐典笅 鍙互绠€鍐檆hecked) checked="checked" 36 checkbox: 澶氶€?鍚屼笂 鍙互璁剧疆榛樿鍊? 37 file:鑾峰彇鐢ㄦ埛涓婁紶鐨勬枃浠? 38 39 select鏍囩 40 榛樿鏄崟閫?鍙互閫氳繃multiple鍙樻垚澶氶€? 41 濡傛灉鎯抽粯璁ら€夋嫨 鐢╯elected (selected="selected") 42 43 label:娉ㄥ唽鐧诲綍鏃剁偣鍑绘彁绀哄唴瀹?鍙互鐩存帴杩涘叆杈撳叆 44 45 46 textarea鏍囩 :鑾峰彇鐢ㄦ埛杈撳叆鐨勫ぇ娈垫枃鏈? 47 3.form 琛ㄥ崟: 48 榛樿鏄痝et璇锋眰 浣犺閫氳繃method鍙傛暟鎹㈡垚post鎻愪氦 49 form 琛ㄥ崟涓鎯宠Е鍙戞彁浜ゅ姩浣? 50 鍙湁涓ょ鎯呭喌鍙互 51 1.input鏍囩type鎸囧畾鎴恠ubmit 52 2.鐩存帴鍐檅utton鏍囩 53 54 鑾峰彇鐢ㄦ埛杈撳叆(杈撳叆 閫夋嫨 涓婁紶...)鐨勬爣绛鹃兘蹇呴』鏈変竴涓猲ame灞炴€? 55 杩欎釜name灞炴€у氨绫讳技浜庡瓧鍏哥殑key ,鑰屾爣绛捐幏鍙栧埌鐨勭敤鎴峰啓鍏ョ殑鍊肩被浼间簬瀛楀吀鐨剉alue 56 57 <input type="text" id="d1" name="user" value="榛樿鍊?/span>" 58 name灏辩浉褰撲簬 瀛楀吀鐨刱ey 59 value灏辨槸瀛楀吀鐨勫€? 60 鑾峰彇閮界殑鐢ㄦ埛杈撳叆閮戒細琚斁鍏alue灞炴€т腑 61 62 63 form 琛ㄥ崟浼犳枃浠剁殑鏃跺€?闇€瑕佸埗瀹歟nctype鐨勫弬鏁?/pre>
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 7 <body> 8 <form> 9 鐢?lt;input type="checkbox" value="m" disabled name="like" checked> 10 <!--鍒╃敤 disabled 璁惧畾榛樿鍊?鏃犳硶鍐嶄綔淇敼,鍗抽槻鍛嗘帾鏂?-> 11 </form> 12 13 </body> 14 </html>
1 from flask import Flask,request 2 3 app = Flask(__name__) 4 @app.route(鈥?/span>/index/鈥?/span>,methods=[鈥?/span>GET鈥?/span>,鈥?/span>POST鈥?/span>]) 5 6 def index(): 7 print(request.form) # 鑾峰彇鍓嶇form琛ㄥ崟鎻愪氦杩囨潵鐨勬暟鎹?/span> 8 print(request.files) 9 file_obj = request.files.get(鈥?/span>avatar鈥?/span>) 10 file_obj.save(鈥?/span>xxx.pdf鈥?/span>) 11 return 鈥?/span>鏀跺埌浜?/span>鈥?/span> 12 app.run()
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 7 <body> 8 <p>澶фⅵ璋佸厛瑙?骞崇敓 鍚捐嚜鐭?¥1000000000</p> 9 10 a > b © 11 b < c 12 ¥ 13 ¥ 14 & 15 & 16 ® 17 © 18 </body> 19 </html>
1 """ 2 鍒楄〃 3 1.鏃犲簭鍒楄〃 4 5 <ul type="disc"> 6 <li>绗竴椤?lt;/li> 7 <li>绗簩椤?lt;/li> 8 </ul> 9 type灞炴€э細 10 11 disc锛堝疄蹇冨渾鐐癸紝榛樿鍊硷級 12 circle锛堢┖蹇冨渾鍦堬級 13 square锛堝疄蹇冩柟鍧楋級 14 none锛堟棤鏍峰紡锛? 15 2.鏈夊簭鍒楄〃 16 17 <ol type="1" start="2"> 18 <li>绗竴椤?lt;/li> 19 <li>绗簩椤?lt;/li> 20 </ol> 21 type灞炴€э細 22 23 1 鏁板瓧鍒楄〃锛岄粯璁ゅ€? 24 A 澶у啓瀛楁瘝 25 a 灏忓啓瀛楁瘝 26 鈪犲ぇ鍐欑綏椹? 27 鈪板皬鍐欑綏椹? 28 3.鏍囬鍒楄〃 29 30 <dl> 31 <dt>鏍囬1</dt> 32 <dd>鍐呭1</dd> 33 <dt>鏍囬2</dt> 34 <dd>鍐呭1</dd> 35 <dd>鍐呭2</dd> 36 </dl> 37 38 """
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 7 <body> 8 <a href="" id="d1">椤堕儴</a> 9 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> 10 <a href="#d1">go tio</a> 11 </body> 12 </html>
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head> 7 <body> 8 <h2>娉ㄥ唽椤甸潰</h2> 9 <form action="http://127.0.0.1:5000/index/" method="post" enctype="multipart/form-data"> 10 <p><label for="d1">username:<input type="text" id="d1" name="username"></label></p> 11 <p><label for="d2">username:<input type="password" id="d2" name="username"></label></p> 12 <p> 13 <label for="d3">birthday</label> 14 <input type="date" id="d3" name="birth"> 15 </p> 16 17 <p>鎬у埆: 18 <input type="radio" name="gender" checked value="male">鐢? 19 <input type="radio" name="gender" checked value="female">濂? 20 </p> 21 <p> 22 <input type="checkbox" name="hobby" value="baseball"> 23 <input type="checkbox" name="hobby" value="football">瓒崇悆 24 <input type="checkbox" name="hobby" checked value="doublecolorball">鍙岃壊鐞? 25 </p> 26 <p>鐪佸競 27 <select name="province" id=""> 28 <option value="sh">涓婃捣</option> 29 <option value="bj">鍖椾含</option> 30 <option value="sz">娣卞湷</option> 31 </select> 32 </p> 33 <p>澶村儚 34 <input type="file" name="avatar"> 35 </p> 36 <p>涓汉绠€浠? 37 <!--鑾峰彇鐢ㄦ埛杈撳叆鐨勫ぇ娈垫枃鏈?-> 38 <textarea name="info" id="" cols="30" rows="10"></textarea> 39 </p> 40 <p> 41 <input type="submit" value="娉ㄥ唽涓€"> 42 <input type="reset" value="娉ㄥ唽浜?/span>"> 43 <input type="button" value="娉ㄥ唽涓?/span>"> 44 <button>button鏍囩</button> 45 </p> 46 </form> 47 </body> 48 </html>
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <!--鏍囬--> 6 <title>HTML娉ㄩ噴</title> 7 </head> 8 <body> 9 <!-- 10 <h1>1<h1> 11 <h1>2<h1> 12 <h1>3<h1> 13 --> 14 </body> 15 </html>
1 <h1>hello oldboy!</h1> 2 <meta charset="UTF-8"> 3 <a href = 鈥?/span>https://www.luffycity.com鈥?/span>>give you some color to see</a> 4 <a href = 鈥?/span>https://www.hao123.com鈥?/span> >绗戣瘽缃?lt;/a> 5 <img src = 鈥?/span>https://img3.utuku.china.com/650x0/toutiao/20190628/51a31906-1538-43fd-aecf-f2a14026a58b.jpg鈥?/span>/>®®®®®®®®®®®®
1 import socket 2 3 4 server = socket.socket() 5 server.bind((鈥?/span>127.0.0.1鈥?/span>,8080)) 6 server.listen(5) 7 8 while True: 9 conn, addr = server.accept() 10 data = conn.recv(1024) 11 conn.send(b鈥?/span>HTTP/1.1 200 OK\r\n\r\n鈥?/span>) 12 #conn.send(b鈥榟ello oldboy!鈥? 13 #conn.send(b鈥?lt;h1>hello oldboy!</h1>鈥? # 瀹㈡埛绔帴鏀跺埌鐨勪俊鎭姞澶у姞绮?/span> 14 with open(鈥?/span>a鈥?/span>,鈥?/span>rb鈥?/span>) as f: 15 for line in f: 16 conn.send(line) 17 # conn.send(b鈥楬TTP/1.1 200 OK\r\n\r\n鈥? 18 # with open(r鈥楧:\fullstack_s4\day48\01 绗竴涓猦tml鏂囦欢.html鈥?鈥榬b鈥? as f: 19 # for line in f: 20 # conn.send(line) 21 conn.close()
xxx.pdf
鏍囩澶у叏
1 <!DOCTYPE html> 2 <!-- html:椤甸潰鏍规爣绛?lang="zh"鍛婅瘔娴忚鍣ㄩ〉闈㈢殑椤甸潰鐨勮瑷€>--> 3 <html lang="en"> 4 <!-- head:澶存爣绛?- 椤甸潰缂栫爜,椤甸潰鏍囩鏍囬,椤甸潰鏍峰紡,椤甸潰鑴氭湰--> 5 <head> 6 <!--椤甸潰缂栫爜--> 7 <meta charset="UTF-8"> 8 <!--椤甸潰鏍囩鏍囬--> 9 <title>Title</title> 10 <!--椤甸潰鏍峰紡--> 11 <style></style> 12 <!--椤甸潰鑴氭湰--> 13 <script></script> 14 </head> 15 <!--body:浣撴爣绛?- 椤甸潰鍐呭,椤甸潰鑴氭湰--> 16 <body> 17 <!--body:鐢ㄤ簬鍐呭鏄剧ず鐨勬爣绛惧叏閮ㄤ功鍐欏湪body涓?-> 18 19 <!--鏍囩:h1~h6--> 20 <!--h1:涓€鑸竴涓〉闈㈠彧鍑虹幇涓€娆?浠h〃璇ラ〉闈㈢殑涓诲唴瀹硅В閲?-> 21 <h1 id="top">涓€绾ф爣绛?lt;/h1> 22 <h2>浜岀骇鏍囬</h2> 23 <h3>涓夌骇鏍囬</h3> 24 <h4>鍥涚骇鏍囬</h4> 25 <h5>浜旂骇鏍囬</h5> 26 <h6>鍏骇鏍囬</h6> 27 28 <!--p:娈佃惤--> 29 <p>娈佃惤</p> 30 31 <!-- 鏂囨湰鐩稿叧鍐呭,涓€鑸細琚玴鏍囩宓屽--> 32 <span>span鏍囩</span> 33 <b>鍔犵矖鏍囩</b> 34 <strong>浠ュ姞绮楁柟寮忓己璋冪殑鏍囩</strong> 35 <i>鏂滀綋鏍囩</i> 36 <em>浠ユ枩浣撴柟寮忓己璋冪殑鏍囩</em> 37 <sup>涓婅鏍?lt;/sup> 38 <sub>涓嬭鏍?lt;/sub> 39 <s>鍒犻櫎</s> 40 <u>涓嬪垝绾?lt;/u> 41 42 43 <!--鍔熻兘鏍囩--> 44 <!--br:鎹㈣--> 45 <br> 46 <!--hr:鍒嗗壊绾?-> 47 <hr> 48 <a href="" id="d1">go d1</a> 49 <!--target:瓒呴摼鎺?:_self _blank--> 50 <a href="https://www.baidu.com " target="_self">鍓嶅線鐧惧害</a> 51 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> 52 <a href="" id="d2">go d2</a> 53 <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> 54 <!--閿氱偣--> 55 <a href="#top">go top</a> 56 57 <!--鍥剧墖鏍囩:src :鍥剧墖婧?alt :璧勬簮鍔犺浇澶辫触鐨?鏂囨湰鎻愮ずtitle :榧犳爣鎮诞鐨勬枃鏈彁绀?-> 58 <img title="璧忓績鎮︾洰鍥?/span>" height="1000" width="800" alt="鍝堝凹" src="http://images.xuejuzi.cn/1612/1_161230185104_1.jpg"> 59 60 <!--缁勫悎鏍囩--> 61 <!--鍒楄〃--> 62 <!--ul>li鍒楄〃椤箎*3 :鏃犲簭--> 63 <ul> 64 <li>鍒楄〃椤?lt;/li> 65 <li>鍒楄〃椤?lt;/li> 66 <li>鍒楄〃椤?lt;/li> 67 </ul> 68 <!--ol>li绗?椤箎*3:鏈夊簭--> 69 <ol> 70 <li>绗?椤?lt;/li> 71 <li>绗?椤?lt;/li> 72 <li>绗?椤?lt;/li> 73 </ol> 74 75 <!--琛ㄦ牸鏍囩--> 76 <!--str:琛?th:鏍囬鍗曞厓鏍?td :鍐呭鍗曞厓鏍?cellpadding:鍗曞厓鏍煎唴閮ㄩ棿璺?cellspacing:鍗曞厓鏍奸棿鐨勯棿璺?-> 77 <!--border 杈规 width 瀹藉害 height 楂?-> 78 <table border="1" width="500" height="300" cellpadding="10" cellspacing="0"> 79 <thead> 80 <tr style="height: 50px"> 81 <th>鏍囬</th> 82 <th>鏍囬</th> 83 <th>鏍囬</th> 84 </tr> 85 </thead> 86 <tbody> 87 <tr> 88 <td>鍗曞厓鏍?lt;/td> 89 <td>鍗曞厓鏍?lt;/td> 90 <td>鍗曞厓鏍?lt;/td> 91 </tr> 92 <tr> 93 <!--colspan :涓や釜鍗曞厓鏍煎悎骞?--妯?-> 94 <td colspan="2">鍗曞厓鏍?lt;/td> 95 <!--<td>鍗曞厓鏍?lt;/td>--> 96 <!--rowspan:涓ょ珫鍚堝苟 --绔?-> 97 <td rowspan="2">鍗曞厓鏍?lt;/td> 98 </tr> 99 </tbody> 100 <!--tfoot:璁捐琛ㄥ熬鏍峰紡--> 101 <tfoot> 102 <!--<tr>--> 103 <!--<td>鍗曞厓鏍?lt;/td>--> 104 <!--<td>鍗曞厓鏍?lt;/td>--> 105 <!--<td>鍗曞厓鏍?lt;/td>--> 106 <!--</tr>--> 107 </tfoot> 108 109 </table> 110 111 112 <!--琛ㄥ崟鏍囩:瀹屾垚鍓嶅悗鍙颁氦浜掔殑 - 灏嗗墠鍙扮敤鎴疯緭鍏ョ殑鍐呭鎻愪氦鍒板悗鍙?-> 113 <!--褰㈠紡鍔ㄤ綔 form action:鎻愪氦鍚庡彴鐨勬帴鍙e湴鍧€ method:鎻愪氦鏂瑰紡 get post--> 114 <!-- input :name 鏄庣‘鎵嶄細寰€鍚庡彴鎻愪氦 ,name鏄敭,value鏄€?(鍙互鎵嬪姩瑙勫畾涔熷彲浠ョ敤鎴疯緭鍏?--> 115 <form action="" method=""> 116 <input type="text" name="user" placeholder="鏂囨湰鍗犱綅绗?/span>"> 117 <input type="password"> 118 <input type="color"> 119 <input type="number"> 120 121 <!--鎻愪氦鏂囦欢--> 122 <input type="file"> 123 <!--鍗曢€夋--> 124 <!--radio 鏀堕煶鏈?checked 閫変腑鐨?-> 125 鐢?lt;input type="radio" name="sex" checked> 126 濂?lt;input type="radio" name="sex"> 127 涓€鐝?lt;input type="radio" name="cless"> 128 浜岀彮<input type="radio" name="cless" checked> 129 <br> 130 鐢?lt;input type="checkbox" value="m" name="like" checked> 131 濂?lt;input type="checkbox" value="f" name="like" checked> 132 浜哄<input type="checkbox" value="mf" name="like"> 133 134 <!--閫夋嫨鍒楄〃 multiple : 鍙互澶氶」鎿嶄綔--> 135 <select name="subject" multiple> 136 <!--option 閫夐」--> 137 <option value="chinese">璇枃</option> 138 <option value="math">鏁板</option> 139 <option value="python">python</option> 140 </select> 141 142 <!--鏂囨湰鍩?-> 143 <textarea name="" id="" cols="30" rows="10"></textarea> 144 145 <!--涓変釜鎸夐挳--> 146 <button type="button">鎸夐挳</button> 147 <button type="reset">閲嶇疆</button> 148 <button type="submit">鎻愪氦</button> 149 150 <!--鎻愪氦--> 151 <input type="submit" value="鐧诲綍"> 152 </form> 153 <!--椤甸潰鑴氭湰--> 154 <script></script> 155 </body> 156 </html>
鎬荤粨
1 鍐呭鎬荤粨: 2 HTTP鍗忚 3 瓒呮枃鏈紶杈撳崗璁? 4 鍥涘ぇ鐗规€? 5 1.鍩轰簬璇锋眰鍝嶅簲 6 2.鍩轰簬TCP/IP浣滅敤鍦ㄥ簲鐢ㄥ眰涔嬩笂鐨勫崗璁? 7 3.鏃犵姸鎬? 8 4.鏃犺繛鎺? 9 websocket 闀胯繛鎺? 10 鏁版嵁鏍煎紡: 11 璇锋眰/鍝嶅簲棣栬(HTTP鍗忚鐗堟湰,璇锋眰鏂瑰紡(get/post)/鍝嶅簲浠g爜) 12 璇锋眰/鍝嶅簲澶?涓€澶у爢k,v閿€煎) 13 璇锋眰/鍝嶅簲浣?post璇锋眰鎼哄甫鏁忔劅鏁版嵁/杩斿洖html鍓嶇鐣岄潰) 14 15 鍝嶅簲鐘舵€佺爜: 16 1xx:鏈嶅姟鍣ㄥ凡鎺ユ敹浣犵殑鏁版嵁,姝e湪澶勭悊,鍙互缁х画浼犺緭 17 2xx:鏈嶅姟鍣ㄥ凡鎺ュ彈璇锋眰,浣犵殑璇锋眰鎴愬姛(200鎴愬姛) 18 3xx:鏈嶅姟鍣ㄩ噸瀹氬悜(鐧诲綍,鐩存帴璺冲埌鐣岄潰) 19 4xx:鏈嶅姟鍣ㄦ潈闄愪笉瓒?03 璇锋眰涓嶅瓨鍦?04 20 5xx:鏈嶅姟鍣ㄥ唴閮ㄩ敊璇?500) 21 22 璇锋眰鏂瑰紡: 23 1.get 鑾峰彇璧勬簮 24 2.post 鎻愪氦鏁版嵁 25 26 HTML 27 瓒呮枃鏈爣璁拌瑷€ 鏋勫缓缃戦〉鐨勫熀鏈鏋? 28 XML涔熷彲浠ユ惌寤哄墠绔〉闈?鍦╫doo(鍐呴儴绠$悊杞欢)妗嗘灦涓娇鐢ㄨ緝澶? 29 30 娉ㄩ噴 <!----> 31 32 鏍囩鍒嗙被1: 33 1.鍙屽悜鏍囩 34 2.鍗曞悜鏍囩 35 鏍囩鍒嗙被2: 36 1.鍧楀効绾ф爣绛?div p h 37 鐙崰涓€琛?鍙互璁剧疆闀垮 38 1.鍧楀効绾ф爣绛惧彲浠ュ祵濂椾换鎰忕被鍨嬬殑鏍囩 39 2.浣嗘槸p鏍囩涓嶈兘蹇効绾ф爣绛?鍙兘宓屽琛屽唴鏍囩 40 2.琛屽唴鏍囩 span a (href + 缃戝潃)img (src + 鍥剧墖鍦板潃) 41 鑷韩鏂囨湰澶氬ぇ,灏卞崰澶氬ぇ 鏃犳硶璁剧疆闀垮 42 43 h1~h6鏍囬鏍囩 44 b(鍔犵矖)i(鏂滀綋) s(鍒犻櫎) u(涓嬪垝绾? 45 br(鎹㈣) hr(鍒嗗壊绾? 46 47 & & 48 绌烘牸 49 ¥ ¥ 50 > > 51 < < 52 ® ® 53 © © 54 55 甯哥敤鏍囩: 56 div 57 span 58 杩欏摜淇╀富瑕佺敤鏉ュ仛缃戦〉楠ㄦ灦鎼缓 椤甸潰甯冨眬 59 a鏍囩 60 href 61 1.鍙互鍐檜rl(缃戝潃)鐐瑰嚮璺宠浆 62 2.閿氱偣 杩樺彲浠ュ啓鍙︿竴涓猘鏍囩鐨?id鍊?鐐瑰嚮璺宠浆鍒板搴旀爣绛炬墍鍦ㄤ綅缃?鍥炲埌椤堕儴) 63 64 target(鐩爣) 榛樿鏄痏self (鑷垜) 褰撳墠椤佃烦杞?涔熷彲浠ユ崲鎴恄blank(绌虹櫧鐨? 鏂板缓绐楀彛鎵撳紑 65 66 濡傛灉url鏄娆$偣鐨勮瘽 鍒濆鏃惰摑鑹? 67 鍙鐐硅繃涓€娆?娴忚鍣ㄤ細閮戒細鍙樻垚绱壊(榛樿钃濊壊) 68 69 img鏍囩 70 src 71 1.鍥剧墖璺緞(鏈湴/缃戜笂) 72 2.url(鑷姩璁块棶璇rl鑾峰彇缁撴灉) 73 3.鐩存帴鏀惧浘鐗囦簩杩涘埗鏁版嵁 74 75 alt 褰撳浘鐗囧姞杞戒笉鍑烘潵鏃?灞曠ず鍑烘潵鐨勬彁绀轰俊鎭? 76 title榧犳爣鎮诞涓婂幓 鎻愮ず淇℃伅 77 height,width 涓よ€呮寫涓€涓氨鍙互瀹炵幇绛夋瘮渚嬬缉鏀? 78 79 ul>li 鏃犲簭鍒楄〃 80 ol>li 鏈夊簭鍒楄〃 81 d1>dt,dd 鏍囬鍒楄〃 82 83 琛ㄦ牸鏍囩: 84 <table> 85 <thead> 86 <tr> 87 <th>鍔犵矖鏂囨湰(鏍囬)</th> 88 <td>鏅€氭枃鏈?lt;/td> 89 </tr> 90 </thead> 91 <tbody></body> 92 </table> 93 94 form琛ㄥ崟 95 鑾峰彇鐢ㄦ埛淇℃伅 鎻愪氦缁欏悗绔? 96 input 鏍囩 97 type 98 text:鏅€氭枃鏈? 99 password:瀵嗘枃 100 date:鏃ユ湡 101 radio:鍗曢€?checked="checked" 鍙互绠€鍐欎负checked 102 checkbox:澶氶€?checked="checked" 鍙互绠€鍐欎负checked 103 file 涓婁紶鏂囦欢 104 105 鎸夐挳缁? 106 submit 瑙﹀彂form琛ㄥ崟鎻愪氦鍔ㄤ綔 107 bottom娌℃湁浠讳綍鏁堟灉 鍙槸鏅€氭寜閽? 108 reset 閲嶇疆鎸夐挳 109 110 bidden 闅愯棌(鐢ㄦ埛鐪嬩笉鍒?浣嗘槸浣犳墦寮€娴忚鍣ㄦ鏌?鏂囨。鏄湁鐨? 111 readonly 鍙 112 select鏍囩 涓嬫媺妗? 113 榛樿鐨勬槸鍗曢€?涓€涓釜鐨勯€夐」 鐢ㄧ殑鏄痮ption鏍囩 114 鍙互鎸囧畾multiple 鍙樻垚澶氶€? 115 116 榛樿閫変腑selected="selected" 绠€鍐檚elected 117 118 <optgroup label="涓€绾ф爣棰?/span>"> 119 <option></option> 120 </optgroup> 121 122 textarea 澶ф鏂囨湰 123 button 鏍囩 鏀惧湪form琛ㄥ崟涔熷彲浠ヨЕ鍙戞彁浜や俊鎭? 124 label 閫氬父涓巌nput 缁撳悎浣跨敤 for鍚庨潰璺焛nput鏍囩鐨刬d鍊? 125 126 127 鑾峰彇鐢ㄦ埛淇℃伅鐨勬爣绛鹃兘搴旇鏈塶ame灞炴€? 128 name绫讳技浜庡瓧鍏哥殑key 鐢ㄦ潵鏍囩input妗嗚幏鍙栧埌鐨勪俊鎭埌搴曟槸浠€涔? 129 鐢ㄦ埛杈撳叆鐨勪俊鎭兘浼氳鏍囩鐨剉alue灞炴€ф帴鏀? 130 浣犱篃鍙互鐩存帴鍐檝alue鍊?浣滀负鏍囩榛樿鍊? 131 132 133 form鏍囩 鍑犱釜姣旇緝閲嶈鐨勫弬鏁? 134 action 鎺у埗鏁版嵁鎻愪氦鐨勫湴鍧€ 135 1.涓嶅啓,榛樿褰撳墠椤甸潰鎵€鍦ㄧ殑鍦板潃鎻愪氦 136 2.鍐欏叏璺緞https://www.hao.123.com 137 3.灏卞啓璺緞鍚庣紑/index/ 138 method 鎺у埗鎻愪氦鏂瑰紡 139 榛樿鏄痝et璇锋眰 140 get璇锋眰鎼哄甫鐨勫弬鏁?浼氱洿鎺ュ睍绀哄崰鍦板潃鏍? 141 get鍓嶆湡涓€鑸彧鑳芥惡甯︿竴浜涗笉閲嶈鐨勪俊鎭?get璇锋眰鎼哄甫鐨勬暟鎹?澶у皬鏄湁闄愬埗 142 澶ф鍦?KB宸﹀彸 143 涔熷彲浠ユ寚瀹氭垚post璇锋眰 144 濡傛灉form琛ㄨ揪瑕佷笂浼犳枃浠?閭d箞闇€瑕佷慨鏀筫nctype鍙傛暟 145 鐢卞師鏉ラ粯璁ょ殑urlencoded(缃戝潃瑙g爜)鍙樻垚form-data(琛ㄥ崟鏁版嵁) 146 flask妗嗘灦 147 涓夎寮? 148 from flask import Flask 149 app = Flask(__name__) 150 app.run()
以上是关于鍓嶇 http鍗忚 鍥涘ぇ鐗规€? web鏈川 -鍝嶅簲鐘舵€佺爜 鍒楄〃鏍囩 琛ㄥ崟鎿嶄綔 form琛ㄥ崟 # 44的主要内容,如果未能解决你的问题,请参考以下文章