Commit 708501d7 by BellCodeEditor

save project

parent 65a297c3
with open(r"C:\Users\Thinkbook\Desktop\新建文本文档.txt",'r',encoding='utf-8') as file:
a=file.readlines()
for i in a:
data=i.split()
sum=0
for sales in data[1:]:
sum=sum+int(sales)
result=data[0]+str(sum)
print(result)
\ No newline at end of file
This diff is collapsed. Click to expand it.
body {
font-family: Roboto, 'Segoe UI',Arial,'Microsoft Yahei',sans-serif;
font-size: 81.25%;
}
body {
align-items: center;
display: flex;
height: 100vh;
justify-content: center;
margin: 0;
}
user agent stylesheet
body {
display: block;
margin: 8px;
}
style attribute {
background-color: rgb(255, 255, 255);
background-image: unset;
--ntp-theme-text-color: rgba(0, 0, 0, 1);
}
<style>
html {
--cr-button-edge-spacing: 12px;
--cr-button-height: 32px;
--cr-controlled-by-spacing: 24px;
--cr-default-input-max-width: 264px;
--cr-icon-ripple-size: 36px;
--cr-icon-ripple-padding: 8px;
--cr-icon-size: 20px;
--cr-icon-button-margin-start: 16px;
--cr-icon-ripple-margin: calc(var(--cr-icon-ripple-padding) * -1);
--cr-section-min-height: 48px;
--cr-section-two-line-min-height: 64px;
--cr-section-padding: 20px;
--cr-section-vertical-padding: 12px;
--cr-section-indent-width: 40px;
--cr-section-indent-padding: calc( var(--cr-section-padding) + var(--cr-section-indent-width));
--cr-section-vertical-margin: 21px;
--cr-centered-card-max-width: 680px;
--cr-centered-card-width-percentage: 0.96;
--cr-hairline: 1px solid rgba(var(--cr-hairline-rgb), .14);
--cr-separator-height: 1px;
--cr-separator-line: var(--cr-separator-height) solid var(--cr-separator-color);
--cr-toolbar-overlay-animation-duration: 150ms;
--cr-toolbar-height: 56px;
--cr-container-shadow-height: 6px;
--cr-container-shadow-margin: calc(-1 * var(--cr-container-shadow-height));
--cr-container-shadow-max-opacity: 1;
--cr-card-border-radius: 8px;
--cr-disabled-opacity: .38;
--cr-form-field-bottom-spacing: 16px;
--cr-form-field-label-font-size: .625rem;
--cr-form-field-label-height: 1em;
--cr-form-field-label-line-height: 1;
}
<style>
html {
--google-blue-50-rgb: 232, 240, 254;
--google-blue-50: rgb(var(--google-blue-50-rgb));
--google-blue-100-rgb: 210, 227, 252;
--google-blue-100: rgb(var(--google-blue-100-rgb));
--google-blue-200-rgb: 174, 203, 250;
--google-blue-200: rgb(var(--google-blue-200-rgb));
--google-blue-300-rgb: 138, 180, 248;
--google-blue-300: rgb(var(--google-blue-300-rgb));
--google-blue-400-rgb: 102, 157, 246;
--google-blue-400: rgb(var(--google-blue-400-rgb));
--google-blue-500-rgb: 66, 133, 244;
--google-blue-500: rgb(var(--google-blue-500-rgb));
--google-blue-600-rgb: 26, 115, 232;
--google-blue-600: rgb(var(--google-blue-600-rgb));
--google-blue-700-rgb: 25, 103, 210;
--google-blue-700: rgb(var(--google-blue-700-rgb));
--google-green-50-rgb: 230, 244, 234;
--google-green-50: rgb(var(--google-green-50-rgb));
--google-green-300-rgb: 129, 201, 149;
--google-green-300: rgb(var(--google-green-300-rgb));
--google-green-400-rgb: 91, 185, 116;
--google-green-400: rgb(var(--google-green-400-rgb));
--google-green-500-rgb: 52, 168, 83;
--google-green-500: rgb(var(--google-green-500-rgb));
--google-green-600-rgb: 30, 142, 62;
--google-green-600: rgb(var(--google-green-600-rgb));
--google-green-700-rgb: 24, 128, 56;
--google-green-700: rgb(var(--google-green-700-rgb));
--google-grey-50-rgb: 248, 249, 250;
--google-grey-50: rgb(var(--google-grey-50-rgb));
--google-grey-100-rgb: 241, 243, 244;
--google-grey-100: rgb(var(--google-grey-100-rgb));
--google-grey-200-rgb: 232, 234, 237;
--google-grey-200: rgb(var(--google-grey-200-rgb));
--google-grey-300-rgb: 218, 220, 224;
--google-grey-300: rgb(var(--google-grey-300-rgb));
--google-grey-400-rgb: 189, 193, 198;
--google-grey-400: rgb(var(--google-grey-400-rgb));
--google-grey-500-rgb: 154, 160, 166;
--google-grey-500: rgb(var(--google-grey-500-rgb));
--google-grey-600-rgb: 128, 134, 139;
--google-grey-600: rgb(var(--google-grey-600-rgb));
--google-grey-700-rgb: 95, 99, 104;
--google-grey-700: rgb(var(--google-grey-700-rgb));
--google-grey-800-rgb: 60, 64, 67;
--google-grey-800: rgb(var(--google-grey-800-rgb));
--google-grey-900-rgb: 32, 33, 36;
--google-grey-900: rgb(var(--google-grey-900-rgb));
--google-grey-900-white-4-percent: #292a2d;
--google-red-300-rgb: 242, 139, 130;
Show All Properties (38 more)
}
<style>
html {
--google-red-100-rgb: 244, 199, 195;
--google-red-100: rgb(var(--google-red-100-rgb));
--google-red-300-rgb: 230, 124, 115;
--google-red-300: rgb(var(--google-red-300-rgb));
--google-red-500-rgb: 219, 68, 55;
--google-red-500: rgb(var(--google-red-500-rgb));
--google-red-700-rgb: 197, 57, 41;
--google-red-700: rgb(var(--google-red-700-rgb));
--google-blue-100-rgb: 198, 218, 252;
--google-blue-100: rgb(var(--google-blue-100-rgb));
--google-blue-300-rgb: 123, 170, 247;
--google-blue-300: rgb(var(--google-blue-300-rgb));
--google-blue-500-rgb: 66, 133, 244;
--google-blue-500: rgb(var(--google-blue-500-rgb));
--google-blue-700-rgb: 51, 103, 214;
--google-blue-700: rgb(var(--google-blue-700-rgb));
--google-green-100-rgb: 183, 225, 205;
--google-green-100: rgb(var(--google-green-100-rgb));
--google-green-300-rgb: 87, 187, 138;
--google-green-300: rgb(var(--google-green-300-rgb));
--google-green-500-rgb: 15, 157, 88;
--google-green-500: rgb(var(--google-green-500-rgb));
--google-green-700-rgb: 11, 128, 67;
--google-green-700: rgb(var(--google-green-700-rgb));
--google-yellow-100-rgb: 252, 232, 178;
--google-yellow-100: rgb(var(--google-yellow-100-rgb));
--google-yellow-300-rgb: 247, 203, 77;
--google-yellow-300: rgb(var(--google-yellow-300-rgb));
--google-yellow-500-rgb: 244, 180, 0;
--google-yellow-500: rgb(var(--google-yellow-500-rgb));
--google-yellow-700-rgb: 240, 147, 0;
--google-yellow-700: rgb(var(--google-yellow-700-rgb));
--google-grey-100-rgb: 245, 245, 245;
--google-grey-100: rgb(var(--google-grey-100-rgb));
--google-grey-300-rgb: 224, 224, 224;
--google-grey-300: rgb(var(--google-grey-300-rgb));
--google-grey-500-rgb: 158, 158, 158;
--google-grey-500: rgb(var(--google-grey-500-rgb));
--google-grey-700-rgb: 97, 97, 97;
--google-grey-700: rgb(var(--google-grey-700-rgb));
--paper-red-50: #ffebee;
--paper-red-100: #ffcdd2;
--paper-red-200: #ef9a9a;
--paper-red-300: #e57373;
--paper-red-400: #ef5350;
--paper-red-500: #f44336;
--paper-red-600: #e53935;
--paper-red-700: #d32f2f;
--paper-red-800: #c62828;
--paper-red-900: #b71c1c;
Show All Properties (74 more)
}
html {
--ntp-focus-shadow-color: rgba(var(--google-blue-600-rgb), .4);
--ntp-theme-text-color: var(--google-grey-800);
background-attachment: fixed;
background-color: rgba(255,255,255,1);
background-position: -64px;
background-repeat: no-repeat;
height: 100%;
overflow: auto;
}
\ No newline at end of file
This diff is collapsed. Click to expand it.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment