首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看Python
a = 1 
b = 2 
print a+b
阅读全部 | liuyi6892835 贴于 2024年1月1日 10:25     hide bbsi
a=123
print(a)
阅读全部 | hanqi513 贴于 2023年12月31日 12:00     hide bbsi
print(123)
阅读全部 | hanqi513 贴于 2023年12月31日 11:59     hide bbsi
a = 123
b= 11
print(a+b)
阅读全部 | 月江南 贴于 2023年12月29日 12:41     hide bbsi
print(2+3)
阅读全部 | linsong 贴于 2023年12月21日 13:46     hide bbsi
print("hello world")
阅读全部 | wumh 贴于 2023年10月31日 11:41     hide bbsi
# python3 ./src/import-brokerinfo.py
import pandas as pd
import requests
import math

def read_df(file_name, sheet_name):
    brokerinfo_df = pd.read_excel(file_name, sheet_name=sheet_name)
    return brokerinfo_df


if __name__ == "__main__":
    brokerinfo_df = read_df("./files/下游公司名称-20231022.xlsx","下游公司名称")
......................
阅读全部 | gaojianglei 贴于 2023年10月24日 15:10     hide bbsi
a=input()
if "0"<=a<="9":
    mg="number"
if "a"<=mg<="z" or "A"<=mg<="Z":
    mg="character"
else:
    mg="other"
print(mg)
阅读全部 | zunr 贴于 2023年10月23日 14:24     hide bbsi
# 编写一个名为num_of_days的子程序,
# 通过它的形参列表接收一个月份(1~12),然后返回当月的天数。
# 无需考虑闰年,只需假定2月份有28天。

# 单一功能原则
def num_of_days(month):
    days = 0 # 初始值。无效
    
    # 根据月份,赋值具体的天数
    if month in (1,3,5,7,8,10,12):
        days = 31
    elif month in (4,6,9,11):
......................
阅读全部 | sunsongwei 贴于 2023年9月13日 22:04     hide bbsi
1 2 3 4 5 6 7 8 9 10 下一页