首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看Python
# if语句的练习
print("请输入数字")
num=int(input())
if  num %2==0:
    num=10+20
print("num=",num)
阅读全部 | SolitaryEag 贴于 2020年5月21日 10:09     hide bbsi
# 彩票系统
import random
num=int(input("请输入您的号码100以内:"))
res=random.choice(range(100))+1
print("中奖数字是",res)
# 判断是否中奖   num==res
if num==res:
    print("恭喜您中了500万")
阅读全部 | SolitaryEag 贴于 2020年5月21日 09:58     hide bbsi
#自己练习的玩
num=int(input("请输入你的购车款(万):"))
numl5=int(input("请输入你分期数:"))
# 首付款
numl1=0.3
numl2=(num*numl1)
# 首付款后剩余部分
print("您的首付款是(万)",numl2)
numl3=(num-numl2)
numl4=(numl3/numl5)
print("你每期应还(万):",numl4)
阅读全部 | SolitaryEag 贴于 2020年5月21日 08:47     hide bbsi
print(hello world!)
阅读全部 | songzixiong 贴于 2020年5月3日 22:44     hide bbsi
println("hello")
阅读全部 | Rencontre 贴于 2020年4月9日 18:36     hide bbsi
language = "Python"
print(language+" is my favorite my language")
阅读全部 | Divine 贴于 2020年4月5日 13:13     hide bbsi
print('你好’)
阅读全部 | あいうえお 贴于 2020年2月27日 12:18     hide bbsi
import turtle
import random
game = turtle.Screen()
turtle.speed(0)
turtle.bgcolor('black')
turtle.color('white')
turtle.pensize(4)
acc_ext = 0
x=10
turtle.penup()
turtle.goto(0,-x)
turtle.pendown()
......................
阅读全部 | hefuchun 贴于 2020年2月7日 10:39     hide bbsi
import requests
from pyquery import PyQuery as pq
from prettyprinter import cpprint
import json
from urllib.parse import urlencode
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
import time
import csv
import datetime
......................
阅读全部 | xiexiejia 贴于 2019年12月13日 19:35     hide bbsi
#!-*- coding:utf-8 -*-
# @author:      dwcai
# @contact:     1510336267.com
# @software:    PyCharm
# @file:        weather_query.py
# @time:        2019-12-05 22:59
# @desc:        查询天气
# --------------------- sep ---------------------
import requests
import json


......................
阅读全部 | dwcai 贴于 2019年12月6日 00:13     hide bbsi
上一页 13 14 15 16 17 18 19 20 21 22 下一页