Python瀛︿範涔嬭緭鍏ュ拰杈撳嚭
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python瀛︿範涔嬭緭鍏ュ拰杈撳嚭相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/mic' title='mic'>mic
rgb lazy inf 鑰冭瘯鎴愮哗 鐢ㄦ埛杈撳叆 鍛戒护杈撳嚭鍛戒护----print()
- 鎵撳嵃涓€娈靛瓧绗︿覆銆?
print(鈥?/span>hello python!鈥?/span>)
- 鎵撳嵃鏁存暟銆?
print(100) print(100+100)
- 鎵撳嵃澶氫釜瀛楃涓诧紝鐢ㄢ€?鈥濇垨鑰呪€?鈥濆彿杩炴帴銆傗€?鈥濅細杈撳嚭涓€涓┖鏍笺€傛墦鍗版暟瀛楀彉閲忓拰瀛楃涓叉椂锛屽彧鑳界敤鈥?鈥濄€?
age = 20 score = "100" print(鈥?/span>浠婂ぉ澶╂皵寰堝ソ鈥?/span>,鈥?/span>鎴戜滑鍘绘捣杈?/span>鈥?/span>,鈥?/span>娓告吵鍚э紒鈥?/span>) print(鈥?/span>浠婂ぉ澶╂皵寰堝ソ鈥?/span>+鈥?/span>鎴戜滑鍘绘捣杈?/span>鈥?/span>+鈥?/span>娓告吵鍚э紒鈥?/span>) print(鈥?/span>鑺辫姳浠婂勾鈥?/span>,age,鈥?/span>宀?/span>鈥?/span>) print(鈥?/span>鑺辫姳闊充箰鑰冭瘯鎴愮哗锛?/span>鈥?/span> + score)
杈撳嚭缁撴灉濡備笅锛?br>
杈撳叆鍛戒护----input()
鍙互璁╃敤鎴疯緭鍏ュ瓧绗︿覆锛屽苟瀛樻斁鍒颁竴涓彉閲忛噷銆傚涓嬶細
print("璇疯緭鍏ヤ綘鐨勫悕瀛楋細") name = input() print(name)
缁撴灉濡備笅锛?br>
以上是关于Python瀛︿範涔嬭緭鍏ュ拰杈撳嚭的主要内容,如果未能解决你的问题,请参考以下文章