Python瀛︿範涔嬭緭鍏ュ拰杈撳嚭

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python瀛︿範涔嬭緭鍏ュ拰杈撳嚭相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/mic' title='mic'>mic   rgb   lazy   inf   鑰冭瘯鎴愮哗   鐢ㄦ埛杈撳叆   鍛戒护   

杈撳嚭鍛戒护----print()

  1. 鎵撳嵃涓€娈靛瓧绗︿覆銆?
    print(鈥?/span>hello python!鈥?/span>)
    杈撳嚭缁撴灉濡備笅锛?br>鎶€鏈浘鐗? src=
  2. 鎵撳嵃鏁存暟銆?
    print(100)
    print(100+100)
    杈撳嚭缁撴灉濡備笅锛?br>鎶€鏈浘鐗? src=
  3. 鎵撳嵃澶氫釜瀛楃涓诧紝鐢ㄢ€?鈥濇垨鑰呪€?鈥濆彿杩炴帴銆傗€?鈥濅細杈撳嚭涓€涓┖鏍笺€傛墦鍗版暟瀛楀彉閲忓拰瀛楃涓叉椂锛屽彧鑳界敤鈥?鈥濄€?
    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>鎶€鏈浘鐗? src=

杈撳叆鍛戒护----input()

鍙互璁╃敤鎴疯緭鍏ュ瓧绗︿覆锛屽苟瀛樻斁鍒颁竴涓彉閲忛噷銆傚涓嬶細

print("璇疯緭鍏ヤ綘鐨勫悕瀛楋細")
name = input()
print(name)

缁撴灉濡備笅锛?br>鎶€鏈浘鐗? src=


以上是关于Python瀛︿範涔嬭緭鍏ュ拰杈撳嚭的主要内容,如果未能解决你的问题,请参考以下文章

docker瀛︿範涔嬭矾

python瀛︿範涔嬫姄鍙栫尗鐪肩數褰盩op100姒滃崟

Kettle瀛︿範涔婼poon浣跨敤

spring瀛︿範涔媋op(FactoryBean浠g悊)

銆愬皬鐧藉涔燙++ 鏁欑▼銆戜笁銆丆++鐢ㄦ埛杈撳叆銆佸垽鏂鍙ュ拰switch

CC2530鐨勯€氱敤IO鍙g殑杈撳叆杈撳嚭